Skip to content

Commit 13e0fe4

Browse files
lumagdedekind
authored andcommitted
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>
1 parent 0694749 commit 13e0fe4

3 files changed

Lines changed: 0 additions & 38 deletions

File tree

drivers/mtd/maps/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ config MTD_PHYSMAP_START
4141
are mapped on your particular target board. Refer to the
4242
memory map which should hopefully be in the documentation for
4343
your board.
44-
Ignore this option if you use run-time physmap configuration
45-
(i.e., run-time calling physmap_configure()).
4644

4745
config MTD_PHYSMAP_LEN
4846
hex "Physical length of flash mapping"
@@ -55,8 +53,6 @@ config MTD_PHYSMAP_LEN
5553
than the total amount of flash present. Refer to the memory
5654
map which should hopefully be in the documentation for your
5755
board.
58-
Ignore this option if you use run-time physmap configuration
59-
(i.e., run-time calling physmap_configure()).
6056

6157
config MTD_PHYSMAP_BANKWIDTH
6258
int "Bank width in octets"
@@ -67,8 +63,6 @@ config MTD_PHYSMAP_BANKWIDTH
6763
in octets. For example, if you have a data bus width of 32
6864
bits, you would set the bus width octet value to 4. This is
6965
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()).
7266

7367
config MTD_PHYSMAP_OF
7468
tristate "Flash device in physical memory map based on OF description"

drivers/mtd/maps/physmap.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -245,21 +245,6 @@ static struct platform_device physmap_flash = {
245245
.num_resources = 1,
246246
.resource = &physmap_flash_resource,
247247
};
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-
}
263248
#endif
264249

265250
static int __init physmap_init(void)

include/linux/mtd/physmap.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,4 @@ struct physmap_flash_data {
3232
struct mtd_partition *parts;
3333
};
3434

35-
/*
36-
* Board needs to specify the exact mapping during their setup time.
37-
*/
38-
void physmap_configure(unsigned long addr, unsigned long size,
39-
int bankwidth, void (*set_vpp)(struct map_info *, int) );
40-
41-
/*
42-
* Machines that wish to do flash partition may want to call this function in
43-
* their setup routine.
44-
*
45-
* physmap_set_partitions(mypartitions, num_parts);
46-
*
47-
* Note that one can always override this hard-coded partition with
48-
* command line partition (you need to enable CONFIG_MTD_CMDLINE_PARTS).
49-
*/
50-
void physmap_set_partitions(struct mtd_partition *parts, int num_parts);
51-
5235
#endif /* __LINUX_MTD_PHYSMAP__ */

0 commit comments

Comments
 (0)