diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-omapl138-hawk.c')
-rw-r--r-- | arch/arm/mach-davinci/board-omapl138-hawk.c | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index deb3922612b9..5a2bd44da54d 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c | |||
@@ -48,8 +48,7 @@ static __init void omapl138_hawk_config_emac(void) | |||
48 | val &= ~BIT(8); | 48 | val &= ~BIT(8); |
49 | ret = davinci_cfg_reg_list(omapl138_hawk_mii_pins); | 49 | ret = davinci_cfg_reg_list(omapl138_hawk_mii_pins); |
50 | if (ret) { | 50 | if (ret) { |
51 | pr_warning("%s: cpgmac/mii mux setup failed: %d\n", | 51 | pr_warn("%s: CPGMAC/MII mux setup failed: %d\n", __func__, ret); |
52 | __func__, ret); | ||
53 | return; | 52 | return; |
54 | } | 53 | } |
55 | 54 | ||
@@ -61,8 +60,7 @@ static __init void omapl138_hawk_config_emac(void) | |||
61 | 60 | ||
62 | ret = da8xx_register_emac(); | 61 | ret = da8xx_register_emac(); |
63 | if (ret) | 62 | if (ret) |
64 | pr_warning("%s: emac registration failed: %d\n", | 63 | pr_warn("%s: EMAC registration failed: %d\n", __func__, ret); |
65 | __func__, ret); | ||
66 | } | 64 | } |
67 | 65 | ||
68 | /* | 66 | /* |
@@ -147,15 +145,14 @@ static __init void omapl138_hawk_mmc_init(void) | |||
147 | 145 | ||
148 | ret = davinci_cfg_reg_list(hawk_mmcsd0_pins); | 146 | ret = davinci_cfg_reg_list(hawk_mmcsd0_pins); |
149 | if (ret) { | 147 | if (ret) { |
150 | pr_warning("%s: MMC/SD0 mux setup failed: %d\n", | 148 | pr_warn("%s: MMC/SD0 mux setup failed: %d\n", __func__, ret); |
151 | __func__, ret); | ||
152 | return; | 149 | return; |
153 | } | 150 | } |
154 | 151 | ||
155 | ret = gpio_request_one(DA850_HAWK_MMCSD_CD_PIN, | 152 | ret = gpio_request_one(DA850_HAWK_MMCSD_CD_PIN, |
156 | GPIOF_DIR_IN, "MMC CD"); | 153 | GPIOF_DIR_IN, "MMC CD"); |
157 | if (ret < 0) { | 154 | if (ret < 0) { |
158 | pr_warning("%s: can not open GPIO %d\n", | 155 | pr_warn("%s: can not open GPIO %d\n", |
159 | __func__, DA850_HAWK_MMCSD_CD_PIN); | 156 | __func__, DA850_HAWK_MMCSD_CD_PIN); |
160 | return; | 157 | return; |
161 | } | 158 | } |
@@ -163,15 +160,14 @@ static __init void omapl138_hawk_mmc_init(void) | |||
163 | ret = gpio_request_one(DA850_HAWK_MMCSD_WP_PIN, | 160 | ret = gpio_request_one(DA850_HAWK_MMCSD_WP_PIN, |
164 | GPIOF_DIR_IN, "MMC WP"); | 161 | GPIOF_DIR_IN, "MMC WP"); |
165 | if (ret < 0) { | 162 | if (ret < 0) { |
166 | pr_warning("%s: can not open GPIO %d\n", | 163 | pr_warn("%s: can not open GPIO %d\n", |
167 | __func__, DA850_HAWK_MMCSD_WP_PIN); | 164 | __func__, DA850_HAWK_MMCSD_WP_PIN); |
168 | goto mmc_setup_wp_fail; | 165 | goto mmc_setup_wp_fail; |
169 | } | 166 | } |
170 | 167 | ||
171 | ret = da8xx_register_mmcsd0(&da850_mmc_config); | 168 | ret = da8xx_register_mmcsd0(&da850_mmc_config); |
172 | if (ret) { | 169 | if (ret) { |
173 | pr_warning("%s: MMC/SD0 registration failed: %d\n", | 170 | pr_warn("%s: MMC/SD0 registration failed: %d\n", __func__, ret); |
174 | __func__, ret); | ||
175 | goto mmc_setup_mmcsd_fail; | 171 | goto mmc_setup_mmcsd_fail; |
176 | } | 172 | } |
177 | 173 | ||
@@ -250,8 +246,7 @@ static __init void omapl138_hawk_usb_init(void) | |||
250 | 246 | ||
251 | ret = davinci_cfg_reg_list(da850_hawk_usb11_pins); | 247 | ret = davinci_cfg_reg_list(da850_hawk_usb11_pins); |
252 | if (ret) { | 248 | if (ret) { |
253 | pr_warning("%s: USB 1.1 PinMux setup failed: %d\n", | 249 | pr_warn("%s: USB 1.1 PinMux setup failed: %d\n", __func__, ret); |
254 | __func__, ret); | ||
255 | return; | 250 | return; |
256 | } | 251 | } |
257 | 252 | ||
@@ -280,8 +275,7 @@ static __init void omapl138_hawk_usb_init(void) | |||
280 | 275 | ||
281 | ret = da8xx_register_usb11(&omapl138_hawk_usb11_pdata); | 276 | ret = da8xx_register_usb11(&omapl138_hawk_usb11_pdata); |
282 | if (ret) { | 277 | if (ret) { |
283 | pr_warning("%s: USB 1.1 registration failed: %d\n", | 278 | pr_warn("%s: USB 1.1 registration failed: %d\n", __func__, ret); |
284 | __func__, ret); | ||
285 | goto usb11_setup_fail; | 279 | goto usb11_setup_fail; |
286 | } | 280 | } |
287 | 281 | ||
@@ -307,8 +301,7 @@ static __init void omapl138_hawk_init(void) | |||
307 | 301 | ||
308 | ret = da850_register_edma(da850_edma_rsv); | 302 | ret = da850_register_edma(da850_edma_rsv); |
309 | if (ret) | 303 | if (ret) |
310 | pr_warning("%s: EDMA registration failed: %d\n", | 304 | pr_warn("%s: EDMA registration failed: %d\n", __func__, ret); |
311 | __func__, ret); | ||
312 | 305 | ||
313 | omapl138_hawk_mmc_init(); | 306 | omapl138_hawk_mmc_init(); |
314 | 307 | ||
@@ -316,9 +309,8 @@ static __init void omapl138_hawk_init(void) | |||
316 | 309 | ||
317 | ret = da8xx_register_watchdog(); | 310 | ret = da8xx_register_watchdog(); |
318 | if (ret) | 311 | if (ret) |
319 | pr_warning("omapl138_hawk_init: " | 312 | pr_warn("%s: watchdog registration failed: %d\n", |
320 | "watchdog registration failed: %d\n", | 313 | __func__, ret); |
321 | ret); | ||
322 | } | 314 | } |
323 | 315 | ||
324 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 316 | #ifdef CONFIG_SERIAL_8250_CONSOLE |