aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-28 15:14:39 -0400
committerMike Frysinger <vapier@gentoo.org>2009-10-08 00:58:18 -0400
commit282246dae8d5757d1f13d61df2d1ebade99c978b (patch)
treeecf3c38620673de0209465c64ed2a37b91f3dd2a /arch/blackfin
parent59bd00c85012af2b59ba8c1b47caaf10ccbfa3b1 (diff)
Blackfin: drop all simple-gpio board resources
The simple-gpio has been replaced by the gpio sysfs interface, so drop the unused simple-gpio resources from all Blackfin boards. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf518/boards/ezbrd.c15
-rw-r--r--arch/blackfin/mach-bf527/boards/cm_bf527.c15
-rw-r--r--arch/blackfin/mach-bf527/boards/ezbrd.c15
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c15
-rw-r--r--arch/blackfin/mach-bf533/boards/blackstamp.c15
-rw-r--r--arch/blackfin/mach-bf533/boards/cm_bf533.c15
-rw-r--r--arch/blackfin/mach-bf533/boards/ezkit.c15
-rw-r--r--arch/blackfin/mach-bf533/boards/stamp.c15
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537e.c15
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537u.c15
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c15
-rw-r--r--arch/blackfin/mach-bf537/boards/tcm_bf537.c15
-rw-r--r--arch/blackfin/mach-bf538/boards/ezkit.c15
-rw-r--r--arch/blackfin/mach-bf548/boards/cm_bf548.c15
-rw-r--r--arch/blackfin/mach-bf548/boards/ezkit.c15
-rw-r--r--arch/blackfin/mach-bf561/boards/cm_bf561.c15
-rw-r--r--arch/blackfin/mach-bf561/boards/ezkit.c15
17 files changed, 0 insertions, 255 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c
index 4c5c805affa5..01975c017116 100644
--- a/arch/blackfin/mach-bf518/boards/ezbrd.c
+++ b/arch/blackfin/mach-bf518/boards/ezbrd.c
@@ -549,19 +549,6 @@ static struct platform_device bf51x_sdh_device = {
549}; 549};
550#endif 550#endif
551 551
552static struct resource bfin_gpios_resources = {
553 .start = 0,
554 .end = MAX_BLACKFIN_GPIOS - 1,
555 .flags = IORESOURCE_IRQ,
556};
557
558static struct platform_device bfin_gpios_device = {
559 .name = "simple-gpio",
560 .id = -1,
561 .num_resources = 1,
562 .resource = &bfin_gpios_resources,
563};
564
565static const unsigned int cclk_vlev_datasheet[] = 552static const unsigned int cclk_vlev_datasheet[] =
566{ 553{
567 VRPAIR(VLEV_100, 400000000), 554 VRPAIR(VLEV_100, 400000000),
@@ -638,8 +625,6 @@ static struct platform_device *stamp_devices[] __initdata = {
638#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 625#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
639 &ezbrd_flash_device, 626 &ezbrd_flash_device,
640#endif 627#endif
641
642 &bfin_gpios_device,
643}; 628};
644 629
645static int __init ezbrd_init(void) 630static int __init ezbrd_init(void)
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c
index 1c4f9e236b9f..f1996b13a3da 100644
--- a/arch/blackfin/mach-bf527/boards/cm_bf527.c
+++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c
@@ -799,19 +799,6 @@ static struct platform_device bfin_device_gpiokeys = {
799}; 799};
800#endif 800#endif
801 801
802static struct resource bfin_gpios_resources = {
803 .start = 0,
804 .end = MAX_BLACKFIN_GPIOS - 1,
805 .flags = IORESOURCE_IRQ,
806};
807
808static struct platform_device bfin_gpios_device = {
809 .name = "simple-gpio",
810 .id = -1,
811 .num_resources = 1,
812 .resource = &bfin_gpios_resources,
813};
814
815static const unsigned int cclk_vlev_datasheet[] = 802static const unsigned int cclk_vlev_datasheet[] =
816{ 803{
817 VRPAIR(VLEV_100, 400000000), 804 VRPAIR(VLEV_100, 400000000),
@@ -916,8 +903,6 @@ static struct platform_device *cmbf527_devices[] __initdata = {
916#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 903#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
917 &cm_flash_device, 904 &cm_flash_device,
918#endif 905#endif
919
920 &bfin_gpios_device,
921}; 906};
922 907
923static int __init cm_init(void) 908static int __init cm_init(void)
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c
index db067036e00b..cad23b15d83c 100644
--- a/arch/blackfin/mach-bf527/boards/ezbrd.c
+++ b/arch/blackfin/mach-bf527/boards/ezbrd.c
@@ -589,19 +589,6 @@ static struct platform_device bfin_device_gpiokeys = {
589}; 589};
590#endif 590#endif
591 591
592static struct resource bfin_gpios_resources = {
593 .start = 0,
594 .end = MAX_BLACKFIN_GPIOS - 1,
595 .flags = IORESOURCE_IRQ,
596};
597
598static struct platform_device bfin_gpios_device = {
599 .name = "simple-gpio",
600 .id = -1,
601 .num_resources = 1,
602 .resource = &bfin_gpios_resources,
603};
604
605static const unsigned int cclk_vlev_datasheet[] = 592static const unsigned int cclk_vlev_datasheet[] =
606{ 593{
607 VRPAIR(VLEV_100, 400000000), 594 VRPAIR(VLEV_100, 400000000),
@@ -710,8 +697,6 @@ static struct platform_device *stamp_devices[] __initdata = {
710#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 697#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
711 &ezbrd_flash_device, 698 &ezbrd_flash_device,
712#endif 699#endif
713
714 &bfin_gpios_device,
715}; 700};
716 701
717static int __init ezbrd_init(void) 702static int __init ezbrd_init(void)
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 9fbdebeb0b1a..f09665f74ba0 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -882,19 +882,6 @@ static struct platform_device bfin_rotary_device = {
882}; 882};
883#endif 883#endif
884 884
885static struct resource bfin_gpios_resources = {
886 .start = 0,
887 .end = MAX_BLACKFIN_GPIOS - 1,
888 .flags = IORESOURCE_IRQ,
889};
890
891static struct platform_device bfin_gpios_device = {
892 .name = "simple-gpio",
893 .id = -1,
894 .num_resources = 1,
895 .resource = &bfin_gpios_resources,
896};
897
898static const unsigned int cclk_vlev_datasheet[] = 885static const unsigned int cclk_vlev_datasheet[] =
899{ 886{
900 VRPAIR(VLEV_100, 400000000), 887 VRPAIR(VLEV_100, 400000000),
@@ -1011,8 +998,6 @@ static struct platform_device *stamp_devices[] __initdata = {
1011#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 998#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
1012 &ezkit_flash_device, 999 &ezkit_flash_device,
1013#endif 1000#endif
1014
1015 &bfin_gpios_device,
1016}; 1001};
1017 1002
1018static int __init ezkit_init(void) 1003static int __init ezkit_init(void)
diff --git a/arch/blackfin/mach-bf533/boards/blackstamp.c b/arch/blackfin/mach-bf533/boards/blackstamp.c
index fc78a3893981..b580884848d4 100644
--- a/arch/blackfin/mach-bf533/boards/blackstamp.c
+++ b/arch/blackfin/mach-bf533/boards/blackstamp.c
@@ -275,19 +275,6 @@ static struct platform_device bfin_device_gpiokeys = {
275}; 275};
276#endif 276#endif
277 277
278static struct resource bfin_gpios_resources = {
279 .start = 0,
280 .end = MAX_BLACKFIN_GPIOS - 1,
281 .flags = IORESOURCE_IRQ,
282};
283
284static struct platform_device bfin_gpios_device = {
285 .name = "simple-gpio",
286 .id = -1,
287 .num_resources = 1,
288 .resource = &bfin_gpios_resources,
289};
290
291#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 278#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
292#include <linux/i2c-gpio.h> 279#include <linux/i2c-gpio.h>
293 280
@@ -378,8 +365,6 @@ static struct platform_device *stamp_devices[] __initdata = {
378#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 365#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
379 &i2c_gpio_device, 366 &i2c_gpio_device,
380#endif 367#endif
381
382 &bfin_gpios_device,
383}; 368};
384 369
385static int __init blackstamp_init(void) 370static int __init blackstamp_init(void)
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c
index a3c20e077a43..7fc3b860d4ae 100644
--- a/arch/blackfin/mach-bf533/boards/cm_bf533.c
+++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c
@@ -241,19 +241,6 @@ static struct platform_device smsc911x_device = {
241}; 241};
242#endif 242#endif
243 243
244static struct resource bfin_gpios_resources = {
245 .start = 0,
246 .end = MAX_BLACKFIN_GPIOS - 1,
247 .flags = IORESOURCE_IRQ,
248};
249
250static struct platform_device bfin_gpios_device = {
251 .name = "simple-gpio",
252 .id = -1,
253 .num_resources = 1,
254 .resource = &bfin_gpios_resources,
255};
256
257#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 244#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
258static struct resource bfin_uart_resources[] = { 245static struct resource bfin_uart_resources[] = {
259 { 246 {
@@ -486,8 +473,6 @@ static struct platform_device *cm_bf533_devices[] __initdata = {
486#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 473#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
487 &para_flash_device, 474 &para_flash_device,
488#endif 475#endif
489
490 &bfin_gpios_device,
491}; 476};
492 477
493static int __init cm_bf533_init(void) 478static int __init cm_bf533_init(void)
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c
index 986fcdcf82d2..d4689dcc198e 100644
--- a/arch/blackfin/mach-bf533/boards/ezkit.c
+++ b/arch/blackfin/mach-bf533/boards/ezkit.c
@@ -389,19 +389,6 @@ static struct platform_device bfin_device_gpiokeys = {
389}; 389};
390#endif 390#endif
391 391
392static struct resource bfin_gpios_resources = {
393 .start = 0,
394 .end = MAX_BLACKFIN_GPIOS - 1,
395 .flags = IORESOURCE_IRQ,
396};
397
398static struct platform_device bfin_gpios_device = {
399 .name = "simple-gpio",
400 .id = -1,
401 .num_resources = 1,
402 .resource = &bfin_gpios_resources,
403};
404
405#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 392#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
406#include <linux/i2c-gpio.h> 393#include <linux/i2c-gpio.h>
407 394
@@ -500,8 +487,6 @@ static struct platform_device *ezkit_devices[] __initdata = {
500#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 487#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
501 &i2c_gpio_device, 488 &i2c_gpio_device,
502#endif 489#endif
503
504 &bfin_gpios_device,
505}; 490};
506 491
507static int __init ezkit_init(void) 492static int __init ezkit_init(void)
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c
index ff1fd938442f..82f70efd66e7 100644
--- a/arch/blackfin/mach-bf533/boards/stamp.c
+++ b/arch/blackfin/mach-bf533/boards/stamp.c
@@ -408,19 +408,6 @@ static struct platform_device bfin_device_gpiokeys = {
408}; 408};
409#endif 409#endif
410 410
411static struct resource bfin_gpios_resources = {
412 .start = 0,
413 .end = MAX_BLACKFIN_GPIOS - 1,
414 .flags = IORESOURCE_IRQ,
415};
416
417static struct platform_device bfin_gpios_device = {
418 .name = "simple-gpio",
419 .id = -1,
420 .num_resources = 1,
421 .resource = &bfin_gpios_resources,
422};
423
424#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 411#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
425#include <linux/i2c-gpio.h> 412#include <linux/i2c-gpio.h>
426 413
@@ -536,8 +523,6 @@ static struct platform_device *stamp_devices[] __initdata = {
536 &i2c_gpio_device, 523 &i2c_gpio_device,
537#endif 524#endif
538 525
539 &bfin_gpios_device,
540
541#if defined(CONFIG_MTD_BFIN_ASYNC) || defined(CONFIG_MTD_BFIN_ASYNC_MODULE) 526#if defined(CONFIG_MTD_BFIN_ASYNC) || defined(CONFIG_MTD_BFIN_ASYNC_MODULE)
542 &stamp_flash_device, 527 &stamp_flash_device,
543#endif 528#endif
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
index e930638e3231..c85f4d770535 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
@@ -276,19 +276,6 @@ static struct platform_device net2272_bfin_device = {
276}; 276};
277#endif 277#endif
278 278
279static struct resource bfin_gpios_resources = {
280 .start = 0,
281 .end = MAX_BLACKFIN_GPIOS - 1,
282 .flags = IORESOURCE_IRQ,
283};
284
285static struct platform_device bfin_gpios_device = {
286 .name = "simple-gpio",
287 .id = -1,
288 .num_resources = 1,
289 .resource = &bfin_gpios_resources,
290};
291
292#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 279#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
293static struct mtd_partition cm_partitions[] = { 280static struct mtd_partition cm_partitions[] = {
294 { 281 {
@@ -678,8 +665,6 @@ static struct platform_device *cm_bf537e_devices[] __initdata = {
678#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 665#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
679 &cm_flash_device, 666 &cm_flash_device,
680#endif 667#endif
681
682 &bfin_gpios_device,
683}; 668};
684 669
685static int __init cm_bf537e_init(void) 670static int __init cm_bf537e_init(void)
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537u.c b/arch/blackfin/mach-bf537/boards/cm_bf537u.c
index fb6835b1330b..ea11aa81340d 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537u.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537u.c
@@ -277,19 +277,6 @@ static struct platform_device net2272_bfin_device = {
277}; 277};
278#endif 278#endif
279 279
280static struct resource bfin_gpios_resources = {
281 .start = 0,
282 .end = MAX_BLACKFIN_GPIOS - 1,
283 .flags = IORESOURCE_IRQ,
284};
285
286static struct platform_device bfin_gpios_device = {
287 .name = "simple-gpio",
288 .id = -1,
289 .num_resources = 1,
290 .resource = &bfin_gpios_resources,
291};
292
293#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 280#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
294static struct mtd_partition cm_partitions[] = { 281static struct mtd_partition cm_partitions[] = {
295 { 282 {
@@ -584,8 +571,6 @@ static struct platform_device *cm_bf537u_devices[] __initdata = {
584#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 571#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
585 &cm_flash_device, 572 &cm_flash_device,
586#endif 573#endif
587
588 &bfin_gpios_device,
589}; 574};
590 575
591static int __init cm_bf537u_init(void) 576static int __init cm_bf537u_init(void)
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 3091a149dd19..c46baa5e6d9b 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -99,19 +99,6 @@ static struct platform_device bfin_device_gpiokeys = {
99}; 99};
100#endif 100#endif
101 101
102static struct resource bfin_gpios_resources = {
103 .start = 0,
104 .end = MAX_BLACKFIN_GPIOS - 1,
105 .flags = IORESOURCE_IRQ,
106};
107
108static struct platform_device bfin_gpios_device = {
109 .name = "simple-gpio",
110 .id = -1,
111 .num_resources = 1,
112 .resource = &bfin_gpios_resources,
113};
114
115#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 102#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
116static struct resource bfin_pcmcia_cf_resources[] = { 103static struct resource bfin_pcmcia_cf_resources[] = {
117 { 104 {
@@ -1675,8 +1662,6 @@ static struct platform_device *stamp_devices[] __initdata = {
1675 &bfin_device_gpiokeys, 1662 &bfin_device_gpiokeys,
1676#endif 1663#endif
1677 1664
1678 &bfin_gpios_device,
1679
1680#if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) 1665#if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
1681 &bfin_async_nand_device, 1666 &bfin_async_nand_device,
1682#endif 1667#endif
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
index 72ff7f815784..57163b65a4f5 100644
--- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c
+++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
@@ -277,19 +277,6 @@ static struct platform_device net2272_bfin_device = {
277}; 277};
278#endif 278#endif
279 279
280static struct resource bfin_gpios_resources = {
281 .start = 0,
282 .end = MAX_BLACKFIN_GPIOS - 1,
283 .flags = IORESOURCE_IRQ,
284};
285
286static struct platform_device bfin_gpios_device = {
287 .name = "simple-gpio",
288 .id = -1,
289 .num_resources = 1,
290 .resource = &bfin_gpios_resources,
291};
292
293#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 280#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
294static struct mtd_partition cm_partitions[] = { 281static struct mtd_partition cm_partitions[] = {
295 { 282 {
@@ -586,8 +573,6 @@ static struct platform_device *cm_bf537_devices[] __initdata = {
586#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 573#if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE)
587 &cm_flash_device, 574 &cm_flash_device,
588#endif 575#endif
589
590 &bfin_gpios_device,
591}; 576};
592 577
593static int __init tcm_bf537_init(void) 578static int __init tcm_bf537_init(void)
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c
index 8d612e7de5e2..14af5c2088d4 100644
--- a/arch/blackfin/mach-bf538/boards/ezkit.c
+++ b/arch/blackfin/mach-bf538/boards/ezkit.c
@@ -483,19 +483,6 @@ static struct platform_device i2c_bfin_twi1_device = {
483#endif 483#endif
484#endif 484#endif
485 485
486static struct resource bfin_gpios_resources = {
487 .start = 0,
488 .end = MAX_BLACKFIN_GPIOS - 1,
489 .flags = IORESOURCE_IRQ,
490};
491
492static struct platform_device bfin_gpios_device = {
493 .name = "simple-gpio",
494 .id = -1,
495 .num_resources = 1,
496 .resource = &bfin_gpios_resources,
497};
498
499#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 486#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
500#include <linux/gpio_keys.h> 487#include <linux/gpio_keys.h>
501 488
@@ -635,8 +622,6 @@ static struct platform_device *cm_bf538_devices[] __initdata = {
635 &bfin_device_gpiokeys, 622 &bfin_device_gpiokeys,
636#endif 623#endif
637 624
638 &bfin_gpios_device,
639
640#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 625#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
641 &ezkit_flash_device, 626 &ezkit_flash_device,
642#endif 627#endif
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c
index 283be6340c68..ccdcd6da2e9f 100644
--- a/arch/blackfin/mach-bf548/boards/cm_bf548.c
+++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c
@@ -359,19 +359,6 @@ static struct platform_device musb_device = {
359}; 359};
360#endif 360#endif
361 361
362static struct resource bfin_gpios_resources = {
363 .start = 0,
364 .end = MAX_BLACKFIN_GPIOS - 1,
365 .flags = IORESOURCE_IRQ,
366};
367
368static struct platform_device bfin_gpios_device = {
369 .name = "simple-gpio",
370 .id = -1,
371 .num_resources = 1,
372 .resource = &bfin_gpios_resources,
373};
374
375#if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) 362#if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE)
376static struct resource bfin_atapi_resources[] = { 363static struct resource bfin_atapi_resources[] = {
377 { 364 {
@@ -830,8 +817,6 @@ static struct platform_device *cm_bf548_devices[] __initdata = {
830#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 817#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
831 &para_flash_device, 818 &para_flash_device,
832#endif 819#endif
833
834 &bfin_gpios_device,
835}; 820};
836 821
837static int __init cm_bf548_init(void) 822static int __init cm_bf548_init(void)
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c
index 879883141a05..1a5286bbb3fa 100644
--- a/arch/blackfin/mach-bf548/boards/ezkit.c
+++ b/arch/blackfin/mach-bf548/boards/ezkit.c
@@ -882,19 +882,6 @@ static struct platform_device bfin_device_gpiokeys = {
882}; 882};
883#endif 883#endif
884 884
885static struct resource bfin_gpios_resources = {
886 .start = 0,
887 .end = MAX_BLACKFIN_GPIOS - 1,
888 .flags = IORESOURCE_IRQ,
889};
890
891static struct platform_device bfin_gpios_device = {
892 .name = "simple-gpio",
893 .id = -1,
894 .num_resources = 1,
895 .resource = &bfin_gpios_resources,
896};
897
898static const unsigned int cclk_vlev_datasheet[] = 885static const unsigned int cclk_vlev_datasheet[] =
899{ 886{
900/* 887/*
@@ -1002,8 +989,6 @@ static struct platform_device *ezkit_devices[] __initdata = {
1002 &bfin_device_gpiokeys, 989 &bfin_device_gpiokeys,
1003#endif 990#endif
1004 991
1005 &bfin_gpios_device,
1006
1007#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 992#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
1008 &ezkit_flash_device, 993 &ezkit_flash_device,
1009#endif 994#endif
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c
index 3efeca7de5fb..dfc8d5b77986 100644
--- a/arch/blackfin/mach-bf561/boards/cm_bf561.c
+++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c
@@ -265,19 +265,6 @@ static struct platform_device net2272_bfin_device = {
265}; 265};
266#endif 266#endif
267 267
268static struct resource bfin_gpios_resources = {
269 .start = 0,
270 .end = MAX_BLACKFIN_GPIOS - 1,
271 .flags = IORESOURCE_IRQ,
272};
273
274static struct platform_device bfin_gpios_device = {
275 .name = "simple-gpio",
276 .id = -1,
277 .num_resources = 1,
278 .resource = &bfin_gpios_resources,
279};
280
281#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 268#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
282static struct resource isp1362_hcd_resources[] = { 269static struct resource isp1362_hcd_resources[] = {
283 { 270 {
@@ -512,8 +499,6 @@ static struct platform_device *cm_bf561_devices[] __initdata = {
512#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 499#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
513 &para_flash_device, 500 &para_flash_device,
514#endif 501#endif
515
516 &bfin_gpios_device,
517}; 502};
518 503
519static int __init cm_bf561_init(void) 504static int __init cm_bf561_init(void)
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c
index a8caa8a59666..9e2d8cfba546 100644
--- a/arch/blackfin/mach-bf561/boards/ezkit.c
+++ b/arch/blackfin/mach-bf561/boards/ezkit.c
@@ -366,19 +366,6 @@ static struct platform_device bfin_device_gpiokeys = {
366}; 366};
367#endif 367#endif
368 368
369static struct resource bfin_gpios_resources = {
370 .start = 0,
371 .end = MAX_BLACKFIN_GPIOS - 1,
372 .flags = IORESOURCE_IRQ,
373};
374
375static struct platform_device bfin_gpios_device = {
376 .name = "simple-gpio",
377 .id = -1,
378 .num_resources = 1,
379 .resource = &bfin_gpios_resources,
380};
381
382#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 369#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
383#include <linux/i2c-gpio.h> 370#include <linux/i2c-gpio.h>
384 371
@@ -472,8 +459,6 @@ static struct platform_device *ezkit_devices[] __initdata = {
472 &isp1362_hcd_device, 459 &isp1362_hcd_device,
473#endif 460#endif
474 461
475 &bfin_gpios_device,
476
477#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 462#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
478 &ezkit_flash_device, 463 &ezkit_flash_device,
479#endif 464#endif