Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8be7b9a authored by Rogerio Pimentel's avatar Rogerio Pimentel Committed by Sascha Hauer
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarRogerio Pimentel <rogerio.pimentel@freescale.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 1e9aed15
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -251,9 +251,9 @@ static void __init mxc_board_init(void)
	mx31_3ds_usbotg_init();
	mx31_3ds_usbotg_init();
	mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata);
	mxc_register_device(&mxc_otg_udc_device, &usbotg_pdata);


	if (!mxc_expio_init(CS5_BASE_ADDR, EXPIO_PARENT_INT))
	if (mxc_expio_init(MX31_CS5_BASE_ADDR, EXPIO_PARENT_INT))
		printk(KERN_WARNING "Init of the debug board failed, all "
		printk(KERN_WARNING "Init of the debug board failed, all "
				    "devices on the board are unusable.\n");
				    "devices on the debug board are unusable.\n");
}
}


static void __init mx31_3ds_timer_init(void)
static void __init mx31_3ds_timer_init(void)