android_kernel_xiaomi_sm8350/drivers/mtd/maps
Lennert Buytenhek 73566edf9b [MTD] Convert physmap to platform driver
After dwmw2 let me know it ought to be done, I rewrote the physmap map
driver to be a platform driver.  I know zilch about the driver model,
so I probably botched it in some way, but I've done some tests on an
ixp23xx board which uses physmap, and it all seems to work.

In order to not break existing physmap users, I've added some compat
code that will instantiate a platform device iff CONFIG_MTD_PHYSMAP_LEN
is defined and != 0.  Also, I've changed the default value for
CONFIG_MTD_PHYSMAP_LEN to zero, so that people who inadvertently
compile in physmap (or new, platform-style, users of physmap) don't get
burned.

This works pretty well -- the new physmap driver is a drop-in replacement
for the old one, and works on said ixp23xx board without any code changes
needed.  (This should hold as long as users don't touch 'physmap_map'
directly.)

Once all physmap users have been converted to instantiate their own
platform devices, the compat code can go.  (Or we decide that we can
change all the in-tree users at the same time, and never merge the
compat code.)

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-07 17:16:36 +01:00
..
alchemy-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
amd76xrom.c
arctic-mtd.c
autcpu12-nvram.c
bast-flash.c
beech-mtd.c
cdb89712.c
ceiva.c
cfi_flagadm.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
cstm_mips_ixx.c
dbox2-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
dc21285.c
dilnetpc.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
dmv182.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
ebony.c
edb7312.c
fortunet.c
h720x-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
ichxrom.c
impa7.c
integrator-flash.c
ipaq-flash.c
iq80310.c
ixp4xx.c
ixp2000.c
Kconfig [MTD] Convert physmap to platform driver 2006-05-07 17:16:36 +01:00
l440gx.c
lasat.c
lubbock-flash.c
mainstone-flash.c
Makefile
map_funcs.c
mbx860.c
mpc1211.c
mtx-1_flash.c
netsc520.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
nettel.c [PATCH] mtd, nettel: fix build error and implicit declaration 2006-04-11 19:42:44 -04:00
ocelot.c
ocotea.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
octagon-5066.c
omap_nor.c
omap-toto-flash.c
pci.c [PATCH] Dead code in mtd/maps/pci.c 2006-03-31 12:18:49 -08:00
pcmciamtd.c Merge master.kernel.org:/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2006-04-02 12:49:59 -07:00
physmap.c [MTD] Convert physmap to platform driver 2006-05-07 17:16:36 +01:00
plat-ram.c
pnc2000.c
pq2fads.c
redwood.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
rpxlite.c
sa1100-flash.c
sbc8240.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
sbc_gxx.c
sc520cdp.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
scb2_flash.c
scx200_docflash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
sharpsl-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
solutionengine.c
sun_uflash.c
tqm8xxl.c
tqm834x.c
ts5500_flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
tsunami_flash.c
uclinux.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
vmax301.c [PATCH] drivers/mtd/maps/vmax301.c: fix off by one vmax_mtd 2006-03-31 12:18:49 -08:00
walnut.c
wr_sbc82xx_flash.c