partition: Add dummy dev_add_partition when partitions are disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
932b57873d
commit
f043f32b82
|
@ -19,8 +19,17 @@ struct partition {
|
|||
char name[16];
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PARTITION
|
||||
struct device_d *dev_add_partition(struct device_d *dev, unsigned long offset,
|
||||
size_t size, int flags, const char *name);
|
||||
#else
|
||||
static inline struct device_d *dev_add_partition(struct device_d *dev,
|
||||
unsigned long offset, size_t size, int flags,
|
||||
const char *name)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
/* FIXME: counterpart missing */
|
||||
|
||||
#endif /* __PARTITION_H */
|
||||
|
|
Loading…
Reference in New Issue