X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-ixp23xx%2Fespresso.c;h=bf688c1286301b90db9b05e27d4809e34e0226e4;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=7a85ced567184c06487742bad59c9db0a5cce56f;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/arm/mach-ixp23xx/espresso.c b/arch/arm/mach-ixp23xx/espresso.c index 7a85ced56..bf688c128 100644 --- a/arch/arm/mach-ixp23xx/espresso.c +++ b/arch/arm/mach-ixp23xx/espresso.c @@ -10,6 +10,7 @@ * warranty of any kind, whether express or implied. */ +#include #include #include #include @@ -52,29 +53,9 @@ static int __init espresso_pci_init(void) }; subsys_initcall(espresso_pci_init); -static struct physmap_flash_data espresso_flash_data = { - .width = 2, -}; - -static struct resource espresso_flash_resource = { - .start = 0x90000000, - .end = 0x91ffffff, - .flags = IORESOURCE_MEM, -}; - -static struct platform_device espresso_flash = { - .name = "physmap-flash", - .id = 0, - .dev = { - .platform_data = &espresso_flash_data, - }, - .num_resources = 1, - .resource = &espresso_flash_resource, -}; - static void __init espresso_init(void) { - platform_device_register(&espresso_flash); + physmap_configure(0x90000000, 0x02000000, 2, NULL); /* * Mark flash as writeable.