[PATCH arm-soc 2/2] plat-omap: dmtimer: remove duplicate check on resource
Varka Bhadram
varkabhadram at gmail.com
Tue Oct 21 03:33:32 PDT 2014
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab at cdac.in>
---
arch/arm/plat-omap/dmtimer.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index db10169..bed495a 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -815,10 +815,6 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
}
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (unlikely(!mem)) {
- dev_err(dev, "%s: no memory resource.\n", __func__);
- return -ENODEV;
- }
timer = devm_kzalloc(dev, sizeof(struct omap_dm_timer), GFP_KERNEL);
if (!timer) {
--
1.7.9.5
More information about the linux-arm-kernel
mailing list