diff options
author | 2014-07-04 21:03:10 +0200 | |
---|---|---|
committer | 2014-07-18 16:11:36 +0800 | |
commit | d3a22442307a37225d99a5137fcbd9fbb2f5c343 (patch) | |
tree | 58f29e663daeb2f9832c00fbcdbf85332730ccb1 /arch/arm/mach-imx/mx31moboard-smartbot.c | |
parent | bus: imx-weim: populate devices on a simple bus (diff) | |
download | wireguard-linux-d3a22442307a37225d99a5137fcbd9fbb2f5c343.tar.xz wireguard-linux-d3a22442307a37225d99a5137fcbd9fbb2f5c343.zip |
ARM: imx: use PTR_ERR_OR_ZERO
replace IS_ERR/PTR_ERR
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/mach-imx/mx31moboard-smartbot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mx31moboard-smartbot.c b/arch/arm/mach-imx/mx31moboard-smartbot.c index 4b3d66eb8d34..89fc35a64448 100644 --- a/arch/arm/mach-imx/mx31moboard-smartbot.c +++ b/arch/arm/mach-imx/mx31moboard-smartbot.c @@ -142,10 +142,8 @@ static int __init smartbot_otg_host_init(void) return -ENODEV; pdev = imx31_add_mxc_ehci_otg(&otg_host_pdata); - if (IS_ERR(pdev)) - return PTR_ERR(pdev); - return 0; + return PTR_ERR_OR_ZERO(pdev); } #else static inline int smartbot_otg_host_init(void) { return 0; } |