aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/physmap.h
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2011-05-23 05:22:45 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-05-24 21:15:37 -0400
commit984e6d8ec5abe0487e4c3c22d233cd6ba8695cda (patch)
treecc9152e7b1e2a1598fd68f4dcac34da5c4f1035c /include/linux/mtd/physmap.h
parent11b73c8b10e58ae90c12e51be5531007e86a9c66 (diff)
mtd: physmap: convert to mtd_device_register()
Convert to mtd_device_register() and remove the CONFIG_MTD_PARTITIONS preprocessor conditionals as partitioning is always available. Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/physmap.h')
-rw-r--r--include/linux/mtd/physmap.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mtd/physmap.h b/include/linux/mtd/physmap.h
index bcfd9f777454..e963b86e296b 100644
--- a/include/linux/mtd/physmap.h
+++ b/include/linux/mtd/physmap.h
@@ -35,8 +35,6 @@ struct physmap_flash_data {
35void physmap_configure(unsigned long addr, unsigned long size, 35void physmap_configure(unsigned long addr, unsigned long size,
36 int bankwidth, void (*set_vpp)(struct map_info *, int) ); 36 int bankwidth, void (*set_vpp)(struct map_info *, int) );
37 37
38#ifdef CONFIG_MTD_PARTITIONS
39
40/* 38/*
41 * Machines that wish to do flash partition may want to call this function in 39 * Machines that wish to do flash partition may want to call this function in
42 * their setup routine. 40 * their setup routine.
@@ -48,6 +46,4 @@ void physmap_configure(unsigned long addr, unsigned long size,
48 */ 46 */
49void physmap_set_partitions(struct mtd_partition *parts, int num_parts); 47void physmap_set_partitions(struct mtd_partition *parts, int num_parts);
50 48
51#endif /* defined(CONFIG_MTD_PARTITIONS) */
52
53#endif /* __LINUX_MTD_PHYSMAP__ */ 49#endif /* __LINUX_MTD_PHYSMAP__ */