diff options
Diffstat (limited to 'drivers/bus/imx-weim.c')
-rw-r--r-- | drivers/bus/imx-weim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 78bccda15a..9b8848d0ad 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -12,6 +12,7 @@ #include <init.h> #include <io.h> #include <of.h> +#include <linux/err.h> struct imx_weim_devtype { unsigned int cs_count; @@ -144,8 +145,8 @@ static int weim_probe(struct device_d *dev) /* get the resource */ weim->base = dev_request_mem_region(dev, 0); - if (!weim->base) { - ret = -EBUSY; + if (IS_ERR(weim->base)) { + ret = PTR_ERR(weim->base); goto weim_err; } |