linux/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 Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
arctic-mtd.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
autcpu12-nvram.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
bast-flash.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
beech-mtd.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
cdb89712.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
ceiva.c [PATCH] kfree cleanup: drivers/mtd 2005-11-07 07:54:02 -08:00
cfi_flagadm.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
cstm_mips_ixx.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
dbox2-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
dc21285.c [PATCH] Fix compilation errors in maps/dc21285.c 2006-02-03 08:32:01 -08:00
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 [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
edb7312.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
fortunet.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
h720x-flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
ichxrom.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
impa7.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
integrator-flash.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
ipaq-flash.c [ARM] Drivers should not make use of architecture private __ioremap 2005-11-17 16:46:41 +00:00
iq80310.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
ixp4xx.c [MTD] maps/ixp4xx: half-word boundary and little-endian fixups 2005-11-29 19:29:37 +01:00
ixp2000.c [DRIVER MODEL] Fix merge clashes with ARM ixp2000 / ixp4xx platforms 2005-11-17 15:47:30 +00:00
Kconfig [MTD] Convert physmap to platform driver 2006-05-07 17:16:36 +01:00
l440gx.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
lasat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lubbock-flash.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
mainstone-flash.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
Makefile [ARM] Remove EPXA10DB machine support 2006-01-08 22:37:46 +00:00
map_funcs.c [MTD] XIP for AMD CFI flash. 2005-06-29 14:18:40 +02:00
mbx860.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
mpc1211.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mtx-1_flash.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
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 [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
ocotea.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
octagon-5066.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
omap_nor.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
omap-toto-flash.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
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 [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
pnc2000.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
pq2fads.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
redwood.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
rpxlite.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sa1100-flash.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
sbc8240.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
sbc_gxx.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
sc520cdp.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
scb2_flash.c [MTD] Kernel Janitor fixes. 2005-05-23 12:57:48 +02:00
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 [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
sun_uflash.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
tqm8xxl.c Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6 2005-11-07 10:24:08 -08:00
tqm834x.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00
ts5500_flash.c [PATCH] drivers/mtd: Use ARRAY_SIZE macro 2006-03-31 12:18:48 -08:00
tsunami_flash.c [PATCH] tsunami_flash: fix "parse error before ';' token" 2006-02-01 08:53:10 -08:00
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 [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
wr_sbc82xx_flash.c [MTD] maps: Clean up trailing white spaces 2005-11-07 15:01:58 +01:00