Message ID | 2e685abe-2544-f996-4756-9836b8ecd450@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 473951203104..cf1fc0d162c4 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -82,7 +82,5 @@ static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused) - if (!pdata) { - pr_err("Memory allocation for McSPI device failed\n"); + if (!pdata) return -ENOMEM; - } pdata->num_cs = mcspi_attrib->num_chipselect; switch (oh->class->rev) {