From: Carsten Emde <C.Emde@osadl.org>
Date: Sat, 16 May 2015 21:17:27 +0200
Subject: driver hwmon AM335x bandgap replace devm_request_and_ioremap-by-devm_ioremap_resource

Signed-off-by: Carsten Emde <C.Emde@osadl.org>

Index: linux-3.18.11-rt7-r7s8/drivers/hwmon/am335x-bandgap.c
===================================================================
--- linux-3.18.11-rt7-r7s8.orig/drivers/hwmon/am335x-bandgap.c
+++ linux-3.18.11-rt7-r7s8/drivers/hwmon/am335x-bandgap.c
@@ -99,9 +99,9 @@ static int am335x_bandgap_probe(struct p
 	if (!res)
 		return -ENODEV;
 
-	data->regs = devm_request_and_ioremap(&pdev->dev, res);
-	if (!data->regs)
-		return -ENODEV;
+	data->regs = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(data->regs))
+		return PTR_ERR(data->regs);
 
 	platform_set_drvdata(pdev, data);