diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-21 10:04:03 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:47 -0500 |
commit | 3b781de6dd96d64c133a7ed774f385d35129575b (patch) | |
tree | 5df2deaa22f09ea5c7c3c465cc70d4a4ecaadeed /arch/blackfin/mach-bf537 | |
parent | 1dafdc513a20410e328b22b6d25d4ac78557516a (diff) |
Blackfin: drop unused SL811 platform resources from bf527/pnav boards
These platforms don't hook up to this USB controller, so no point in
declaring resources for it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index f08533d4aee8..a0f64ff0fb55 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <asm/dma.h> | 17 | #include <asm/dma.h> |
18 | #include <asm/bfin5xx_spi.h> | 18 | #include <asm/bfin5xx_spi.h> |
19 | #include <asm/portmux.h> | 19 | #include <asm/portmux.h> |
20 | #include <linux/usb/sl811.h> | ||
21 | 20 | ||
22 | #include <linux/spi/ad7877.h> | 21 | #include <linux/spi/ad7877.h> |
23 | 22 | ||
@@ -99,51 +98,6 @@ static struct platform_device smc91x_device = { | |||
99 | }; | 98 | }; |
100 | #endif | 99 | #endif |
101 | 100 | ||
102 | #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) | ||
103 | static struct resource sl811_hcd_resources[] = { | ||
104 | { | ||
105 | .start = 0x20340000, | ||
106 | .end = 0x20340000, | ||
107 | .flags = IORESOURCE_MEM, | ||
108 | }, { | ||
109 | .start = 0x20340004, | ||
110 | .end = 0x20340004, | ||
111 | .flags = IORESOURCE_MEM, | ||
112 | }, { | ||
113 | .start = CONFIG_USB_SL811_BFIN_IRQ, | ||
114 | .end = CONFIG_USB_SL811_BFIN_IRQ, | ||
115 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | ||
116 | }, | ||
117 | }; | ||
118 | |||
119 | #if defined(CONFIG_USB_SL811_BFIN_USE_VBUS) | ||
120 | void sl811_port_power(struct device *dev, int is_on) | ||
121 | { | ||
122 | gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS, "usb:SL811_VBUS"); | ||
123 | gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on); | ||
124 | |||
125 | } | ||
126 | #endif | ||
127 | |||
128 | static struct sl811_platform_data sl811_priv = { | ||
129 | .potpg = 10, | ||
130 | .power = 250, /* == 500mA */ | ||
131 | #if defined(CONFIG_USB_SL811_BFIN_USE_VBUS) | ||
132 | .port_power = &sl811_port_power, | ||
133 | #endif | ||
134 | }; | ||
135 | |||
136 | static struct platform_device sl811_hcd_device = { | ||
137 | .name = "sl811-hcd", | ||
138 | .id = 0, | ||
139 | .dev = { | ||
140 | .platform_data = &sl811_priv, | ||
141 | }, | ||
142 | .num_resources = ARRAY_SIZE(sl811_hcd_resources), | ||
143 | .resource = sl811_hcd_resources, | ||
144 | }; | ||
145 | #endif | ||
146 | |||
147 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 101 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
148 | static struct platform_device bfin_mii_bus = { | 102 | static struct platform_device bfin_mii_bus = { |
149 | .name = "bfin_mii_bus", | 103 | .name = "bfin_mii_bus", |
@@ -514,10 +468,6 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
514 | &rtc_device, | 468 | &rtc_device, |
515 | #endif | 469 | #endif |
516 | 470 | ||
517 | #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) | ||
518 | &sl811_hcd_device, | ||
519 | #endif | ||
520 | |||
521 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 471 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
522 | &smc91x_device, | 472 | &smc91x_device, |
523 | #endif | 473 | #endif |