diff options
author | Rogerio Pimentel <rpimentel.silva@gmail.com> | 2010-10-25 10:54:24 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-26 10:11:06 -0400 |
commit | b8be7b9a6d3c7b63df9fc356a81288d5404ff505 (patch) | |
tree | e993c100c30c7d7beeff5a1d149b570a842457ab /arch/arm/mach-mx3/mach-mx31_3ds.c | |
parent | 1e9aed156b7bc42311370b155f73ee5961b8557d (diff) |
mx31_3ds: Fix the logic for detecting the debug board
The function mxc_expio_init returns 0 on success, so fix the logic for
printing the error case.
Also fixed the wording on the error message.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Rogerio Pimentel <rogerio.pimentel@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31_3ds.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31_3ds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index bc21efce1645..56fff3bb1243 100644 --- a/arch/arm/mach-mx3/mach-mx31_3ds.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c | |||
@@ -251,9 +251,9 @@ static void __init mxc_board_init(void) | |||
251 | mx31_3ds_usbotg_init(); | 251 | mx31_3ds_usbotg_init(); |
252 | mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata); | 252 | mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata); |
253 | 253 | ||
254 | if (!mxc_expio_init(CS5_BASE_ADDR, EXPIO_PARENT_INT)) | 254 | if (mxc_expio_init(MX31_CS5_BASE_ADDR, EXPIO_PARENT_INT)) |
255 | printk(KERN_WARNING "Init of the debugboard failed, all " | 255 | printk(KERN_WARNING "Init of the debug board failed, all " |
256 | "devices on the board are unusable.\n"); | 256 | "devices on the debug board are unusable.\n"); |
257 | } | 257 | } |
258 | 258 | ||
259 | static void __init mx31_3ds_timer_init(void) | 259 | static void __init mx31_3ds_timer_init(void) |