diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-02 10:51:14 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:01:57 -0400 |
commit | 13e0fe49f676607688da7475c33540ec5dac53b5 (patch) | |
tree | b77e1a4e8f361e170158b9131ffa0d9b95338c33 /drivers/mtd | |
parent | 06947494bea31e536eba1d5c7d95791a9d2b5a99 (diff) |
mtd: drop physmap_configure
physmap_configure() and physmap_set_partitions() have no users in kernel.
Out of kernel users should have been converted to regular platform device
long ago. Drop support for this obsolete API.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/Kconfig | 6 | ||||
-rw-r--r-- | drivers/mtd/maps/physmap.c | 15 |
2 files changed, 0 insertions, 21 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index 11cc2307c2ca..46eca3b3bcb0 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -41,8 +41,6 @@ config MTD_PHYSMAP_START | |||
41 | are mapped on your particular target board. Refer to the | 41 | are mapped on your particular target board. Refer to the |
42 | memory map which should hopefully be in the documentation for | 42 | memory map which should hopefully be in the documentation for |
43 | your board. | 43 | your board. |
44 | Ignore this option if you use run-time physmap configuration | ||
45 | (i.e., run-time calling physmap_configure()). | ||
46 | 44 | ||
47 | config MTD_PHYSMAP_LEN | 45 | config MTD_PHYSMAP_LEN |
48 | hex "Physical length of flash mapping" | 46 | hex "Physical length of flash mapping" |
@@ -55,8 +53,6 @@ config MTD_PHYSMAP_LEN | |||
55 | than the total amount of flash present. Refer to the memory | 53 | than the total amount of flash present. Refer to the memory |
56 | map which should hopefully be in the documentation for your | 54 | map which should hopefully be in the documentation for your |
57 | board. | 55 | board. |
58 | Ignore this option if you use run-time physmap configuration | ||
59 | (i.e., run-time calling physmap_configure()). | ||
60 | 56 | ||
61 | config MTD_PHYSMAP_BANKWIDTH | 57 | config MTD_PHYSMAP_BANKWIDTH |
62 | int "Bank width in octets" | 58 | int "Bank width in octets" |
@@ -67,8 +63,6 @@ config MTD_PHYSMAP_BANKWIDTH | |||
67 | in octets. For example, if you have a data bus width of 32 | 63 | in octets. For example, if you have a data bus width of 32 |
68 | bits, you would set the bus width octet value to 4. This is | 64 | bits, you would set the bus width octet value to 4. This is |
69 | used internally by the CFI drivers. | 65 | used internally by the CFI drivers. |
70 | Ignore this option if you use run-time physmap configuration | ||
71 | (i.e., run-time calling physmap_configure()). | ||
72 | 66 | ||
73 | config MTD_PHYSMAP_OF | 67 | config MTD_PHYSMAP_OF |
74 | tristate "Flash device in physical memory map based on OF description" | 68 | tristate "Flash device in physical memory map based on OF description" |
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index f64cee4a3bfb..2174d103297e 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c | |||
@@ -245,21 +245,6 @@ static struct platform_device physmap_flash = { | |||
245 | .num_resources = 1, | 245 | .num_resources = 1, |
246 | .resource = &physmap_flash_resource, | 246 | .resource = &physmap_flash_resource, |
247 | }; | 247 | }; |
248 | |||
249 | void physmap_configure(unsigned long addr, unsigned long size, | ||
250 | int bankwidth, void (*set_vpp)(struct map_info *, int)) | ||
251 | { | ||
252 | physmap_flash_resource.start = addr; | ||
253 | physmap_flash_resource.end = addr + size - 1; | ||
254 | physmap_flash_data.width = bankwidth; | ||
255 | physmap_flash_data.set_vpp = set_vpp; | ||
256 | } | ||
257 | |||
258 | void physmap_set_partitions(struct mtd_partition *parts, int num_parts) | ||
259 | { | ||
260 | physmap_flash_data.nr_parts = num_parts; | ||
261 | physmap_flash_data.parts = parts; | ||
262 | } | ||
263 | #endif | 248 | #endif |
264 | 249 | ||
265 | static int __init physmap_init(void) | 250 | static int __init physmap_init(void) |