All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] Convert to use devm_ioremap_resource
@ 2013-06-10 11:46 ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, alsa-devel, devel, linux-can, linux-doc,
	linux-gpio, linux-mmc, linux-pci, linux-usb, netdev, sparclinux,
	Bjorn Helgaas, Chris Ball, Dan Williams, David S. Miller,
	Felipe Balbi, Grant Likely, Greg Kroah-Hartman, Liam Girdwood,
	Linus Walleij, Marc Kleine-Budde, Mark Brown, Michal Simek,
	Rob Landley, Vinod Koul, Wolfgang Grandegger

These are the remaining instances of devm_request_and_ioremap. Convert
them to use devm_ioremap_resource as introduced by commit
75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()).
Patches 1 to 13 remove occurrences of devm_request_and_ioremap.
Patch 14 modifies one comment that speaks about devm_request_and_ioremap.
Patch 15 removes the definition of devm_request_and_ioremap which
should only be applied if all other pathces are merged.

Tushar Behera (15):
  sparc,leon: Convert to use devm_ioremap_resource
  sudmac: Convert to use devm_ioremap_resource
  mmc: mvsdio: Convert to use devm_ioremap_resource
  gpio_msm: Convert to use devm_ioremap_resource
  gpio-sta2x11: Convert to use devm_ioremap_resource
  net: bcm63xx_enet: Convert to use devm_ioremap_resource
  net: fec: Convert to use devm_ioremap_resource
  net: emaclite: Convert to use devm_ioremap_resource
  net: can: Convert to use devm_ioremap_resource
  Staging: netlogic: Convert to use devm_ioremap_resource
  regulator: ti-abb: Convert to use devm_ioremap_resource
  ASoC: spear: Convert to use devm_ioremap_resource
  pci: mvebu: Convert to use devm_ioremap_resource
  usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource
  lib: devres: Remove deprecated devm_request_and_ioremap

 Documentation/driver-model/devres.txt         |    1 -
 arch/sparc/kernel/leon_pci_grpci1.c           |    6 +++---
 drivers/dma/sh/sudmac.c                       |    6 +++---
 drivers/gpio/gpio-msm-v1.c                    |   12 +++++------
 drivers/gpio/gpio-sta2x11.c                   |    4 +++-
 drivers/mmc/host/mvsdio.c                     |    6 +++---
 drivers/net/can/c_can/c_can_platform.c        |    4 ++--
 drivers/net/ethernet/broadcom/bcm63xx_enet.c  |   12 +++++------
 drivers/net/ethernet/freescale/fec_main.c     |   12 +++++------
 drivers/net/ethernet/xilinx/xilinx_emaclite.c |    6 ++++--
 drivers/pci/host/pci-mvebu.c                  |    5 +++--
 drivers/regulator/ti-abb-regulator.c          |   12 +++++------
 drivers/staging/netlogic/xlr_net.c            |    8 +++----
 drivers/usb/phy/phy-rcar-usb.c                |    2 +-
 include/linux/device.h                        |    2 --
 lib/devres.c                                  |   28 -------------------------
 sound/soc/spear/spdif_out.c                   |   20 +++++-------------
 17 files changed, 55 insertions(+), 91 deletions(-)

CC: alsa-devel@alsa-project.org
CC: devel@driverdev.osuosl.org
CC: linux-can@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-gpio@vger.kernel.org
CC: linux-mmc@vger.kernel.org
CC: linux-pci@vger.kernel.org
CC: linux-usb@vger.kernel.org
CC: netdev@vger.kernel.org
CC: sparclinux@vger.kernel.org
CC: Bjorn Helgaas <bhelgaas@google.com>
CC: Chris Ball <cjb@laptop.org>
CC: Dan Williams <djbw@fb.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Felipe Balbi <balbi@ti.com>
CC: Grant Likely <grant.likely@linaro.org>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Marc Kleine-Budde <mkl@pengutronix.de>
CC: Mark Brown <broonie@kernel.org>
CC: Michal Simek <michal.simek@xilinx.com>
CC: Rob Landley <rob@landley.net>
CC: Vinod Koul <vinod.koul@intel.com>
CC: Wolfgang Grandegger <wg@grandegger.com>
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
@ 2013-06-10 11:46   ` Tushar Behera
  -1 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, sparclinux, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: sparclinux@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
* Not compile tested.
 arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index 7739a54..23497f4 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
 
 	/* find device register base address */
 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
-	regs = devm_request_and_ioremap(&ofdev->dev, res);
-	if (!regs) {
+	regs = devm_ioremap_resource(&ofdev->dev, res);
+	if (IS_ERR(regs)) {
 		dev_err(&ofdev->dev, "io-regs mapping failed\n");
-		return -EADDRNOTAVAIL;
+		return PTR_ERR(regs);
 	}
 
 	/*
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 02/15] sudmac: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
  (?)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-17  6:11   ` Tushar Behera
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, Vinod Koul, Dan Williams

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: Vinod Koul <vinod.koul@intel.com>
CC: Dan Williams <djbw@fb.com>
---
 drivers/dma/sh/sudmac.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
index e7c94bb..0a81e30 100644
--- a/drivers/dma/sh/sudmac.c
+++ b/drivers/dma/sh/sudmac.c
@@ -360,9 +360,9 @@ static int sudmac_probe(struct platform_device *pdev)
 
 	dma_dev = &su_dev->shdma_dev.dma_dev;
 
-	su_dev->chan_reg = devm_request_and_ioremap(&pdev->dev, chan);
-	if (!su_dev->chan_reg)
-		return err;
+	su_dev->chan_reg = devm_ioremap_resource(&pdev->dev, chan);
+	if (IS_ERR(su_dev->chan_reg))
+		return PTR_ERR(su_dev->chan_reg);
 
 	dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 03/15] mmc: mvsdio: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (2 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-17  6:12   ` Tushar Behera
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, linux-mmc, Chris Ball

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-mmc@vger.kernel.org
CC: Chris Ball <cjb@laptop.org>
---
 drivers/mmc/host/mvsdio.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
index d08fe6a..656f1f5 100644
--- a/drivers/mmc/host/mvsdio.c
+++ b/drivers/mmc/host/mvsdio.c
@@ -758,9 +758,9 @@ static int __init mvsd_probe(struct platform_device *pdev)
 
 	spin_lock_init(&host->lock);
 
-	host->base = devm_request_and_ioremap(&pdev->dev, r);
-	if (!host->base) {
-		ret = -ENOMEM;
+	host->base = devm_ioremap_resource(&pdev->dev, r);
+	if (IS_ERR(host->base)) {
+		ret = PTR_ERR(host->base);
 		goto out;
 	}
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 04/15] gpio_msm: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (3 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-17  6:13   ` Tushar Behera
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, linux-gpio, Linus Walleij, Grant Likely

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-gpio@vger.kernel.org
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Grant Likely <grant.likely@linaro.org>
---
 drivers/gpio/gpio-msm-v1.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
index c798585a..c0ead43 100644
--- a/drivers/gpio/gpio-msm-v1.c
+++ b/drivers/gpio/gpio-msm-v1.c
@@ -652,14 +652,14 @@ static int __devinit gpio_msm_v1_probe(struct platform_device *pdev)
 		return irq2;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base1 = devm_request_and_ioremap(&pdev->dev, res);
-	if (!base1)
-		return -EADDRNOTAVAIL;
+	base1 = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(base1))
+		return PTR_ERR(base1);
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
-	base2 = devm_request_and_ioremap(&pdev->dev, res);
-	if (!base2)
-		return -EADDRNOTAVAIL;
+	base2 = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(base2))
+		return PTR_ERR(base2);
 
 	for (i = FIRST_GPIO_IRQ; i < FIRST_GPIO_IRQ + NR_GPIO_IRQS; i++) {
 		if (i - FIRST_GPIO_IRQ >=
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 05/15] gpio-sta2x11: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (4 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-17  6:13   ` Tushar Behera
  2013-06-17  8:54   ` Linus Walleij
  -1 siblings, 2 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, linux-gpio, Grant Likely, Linus Walleij

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-gpio@vger.kernel.org
CC: Grant Likely <grant.likely@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpio/gpio-sta2x11.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c
index 5585425..c977c14 100644
--- a/drivers/gpio/gpio-sta2x11.c
+++ b/drivers/gpio/gpio-sta2x11.c
@@ -372,7 +372,9 @@ static int gsta_probe(struct platform_device *dev)
 
 	chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL);
 	chip->dev = &dev->dev;
-	chip->reg_base = devm_request_and_ioremap(&dev->dev, res);
+	chip->reg_base = devm_ioremap_resource(&dev->dev, res);
+	if (IS_ERR(chip->reg_base))
+		return PTR_ERR(chip->reg_base);
 
 	for (i = 0; i < GSTA_NR_BLOCKS; i++) {
 		chip->regs[i] = chip->reg_base + i * 4096;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 06/15] net: bcm63xx_enet: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (5 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-12  9:23   ` David Miller
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, netdev, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: netdev@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
* Not compile tested.

 drivers/net/ethernet/broadcom/bcm63xx_enet.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index e46466c..d690308 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1641,9 +1641,9 @@ static int bcm_enet_probe(struct platform_device *pdev)
 	if (ret)
 		goto out;
 
-	priv->base = devm_request_and_ioremap(&pdev->dev, res_mem);
-	if (priv->base == NULL) {
-		ret = -ENOMEM;
+	priv->base = devm_ioremap_resource(&pdev->dev, res_mem);
+	if (IS_ERR(priv->base)) {
+		ret = PTR_ERR(priv->base);
 		goto out;
 	}
 
@@ -1871,9 +1871,9 @@ static int bcm_enet_shared_probe(struct platform_device *pdev)
 	if (!res)
 		return -ENODEV;
 
-	bcm_enet_shared_base = devm_request_and_ioremap(&pdev->dev, res);
-	if (!bcm_enet_shared_base)
-		return -ENOMEM;
+	bcm_enet_shared_base = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(bcm_enet_shared_base))
+		return PTR_ERR(bcp_enet_shared_base);
 
 	return 0;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 07/15] net: fec: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (6 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-12  9:23   ` David Miller
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, netdev, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: netdev@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
 drivers/net/ethernet/freescale/fec_main.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index c42c42a..b0d36b7 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1876,17 +1876,17 @@ fec_probe(struct platform_device *pdev)
 	    (pdev->id_entry->driver_data & FEC_QUIRK_HAS_GBIT))
 		fep->pause_flag |= FEC_PAUSE_FLAG_AUTONEG;
 
-	fep->hwp = devm_request_and_ioremap(&pdev->dev, r);
+	fep->hwp = devm_ioremap_resource(&pdev->dev, r);
+	if (IS_ERR(fep->hwp)) {
+		ret = PTR_ERR(fep->hwp);
+		goto failed_ioremap;
+	}
+
 	fep->pdev = pdev;
 	fep->dev_id = dev_id++;
 
 	fep->bufdesc_ex = 0;
 
-	if (!fep->hwp) {
-		ret = -ENOMEM;
-		goto failed_ioremap;
-	}
-
 	platform_set_drvdata(pdev, ndev);
 
 	ret = of_get_phy_mode(pdev->dev.of_node);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 08/15] net: emaclite: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (7 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-12  9:23   ` David Miller
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, netdev, David S. Miller, Michal Simek

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: netdev@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
CC: Michal Simek <michal.simek@xilinx.com>
---
 drivers/net/ethernet/xilinx/xilinx_emaclite.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 1cd131b..fd4dbda 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -1159,9 +1159,11 @@ static int xemaclite_of_probe(struct platform_device *ofdev)
 	ndev->irq = res->start;
 
 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
-	lp->base_addr = devm_request_and_ioremap(&ofdev->dev, res);
-	if (!lp->base_addr)
+	lp->base_addr = devm_ioremap_resource(&ofdev->dev, res);
+	if (IS_ERR(lp->base_addr)) {
+		rc = PTR_ERR(lp->base_addr);
 		goto error;
+	}
 
 	ndev->mem_start = res->start;
 	ndev->mem_end = res->end;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (8 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-10 13:09   ` Marc Kleine-Budde
                     ` (2 more replies)
  -1 siblings, 3 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, netdev, linux-can, Marc Kleine-Budde,
	Wolfgang Grandegger

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: netdev@vger.kernel.org
CC: linux-can@vger.kernel.org
CC: Marc Kleine-Budde <mkl@pengutronix.de>
CC: Wolfgang Grandegger <wg@grandegger.com>
---
 drivers/net/can/c_can/c_can_platform.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c
index 6b6130b..b918c73 100644
--- a/drivers/net/can/c_can/c_can_platform.c
+++ b/drivers/net/can/c_can/c_can_platform.c
@@ -201,8 +201,8 @@ static int c_can_plat_probe(struct platform_device *pdev)
 			priv->instance = pdev->id;
 
 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
-		priv->raminit_ctrlreg =	devm_request_and_ioremap(&pdev->dev, res);
-		if (!priv->raminit_ctrlreg || priv->instance < 0)
+		priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
+		if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
 			dev_info(&pdev->dev, "control memory is not used for raminit\n");
 		else
 			priv->raminit = c_can_hw_raminit;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 10/15] Staging: netlogic: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (9 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  -1 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, devel, Greg Kroah-Hartman

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: devel@driverdev.osuosl.org
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/staging/netlogic/xlr_net.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c
index dd98cb1..c30fa54 100644
--- a/drivers/staging/netlogic/xlr_net.c
+++ b/drivers/staging/netlogic/xlr_net.c
@@ -1020,12 +1020,12 @@ static int xlr_net_probe(struct platform_device *pdev)
 		goto err_gmac;
 	}
 
-	ndev->base_addr = (unsigned long) devm_request_and_ioremap
+	ndev->base_addr = (unsigned long) devm_ioremap_resource
 		(&pdev->dev, res);
-	if (!ndev->base_addr) {
+	if (IS_ERR_VALUE(ndev->base_addr)) {
 		dev_err(&pdev->dev,
-				"devm_request_and_ioremap failed\n");
-		return -EBUSY;
+				"devm_ioremap_resource failed\n");
+		return ndev->base_addr;
 	}
 
 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (10 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-10 12:01   ` Sachin Kamat
                     ` (2 more replies)
  -1 siblings, 3 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, Mark Brown, Liam Girdwood

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: Mark Brown <broonie@kernel.org>
CC: Liam Girdwood <lgirdwood@gmail.com>
---
 drivers/regulator/ti-abb-regulator.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c
index 870d209..f494a11 100644
--- a/drivers/regulator/ti-abb-regulator.c
+++ b/drivers/regulator/ti-abb-regulator.c
@@ -722,10 +722,10 @@ static int ti_abb_probe(struct platform_device *pdev)
 		ret = -ENODEV;
 		goto err;
 	}
-	abb->base = devm_request_and_ioremap(dev, res);
-	if (!abb->base) {
+	abb->base = devm_ioremap_resource(dev, res);
+	if (IS_ERR(abb->base)) {
 		dev_err(dev, "Unable to map '%s'\n", pname);
-		ret = -ENOMEM;
+		ret = PTR_ERR(abb->base);
 		goto err;
 	}
 
@@ -776,10 +776,10 @@ static int ti_abb_probe(struct platform_device *pdev)
 		ret = -ENODEV;
 		goto skip_opt;
 	}
-	abb->ldo_base = devm_request_and_ioremap(dev, res);
-	if (!abb->ldo_base) {
+	abb->ldo_base = devm_ioremap_resource(dev, res);
+	if (IS_ERR(abb->ldo_base)) {
 		dev_err(dev, "Unable to map '%s'\n", pname);
-		ret = -ENOMEM;
+		ret = PTR_ERR(abb->ldo_base);
 		goto err;
 	}
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (11 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-10 12:06   ` Sachin Kamat
  2013-06-17  9:13   ` [PATCH V2 " Tushar Behera
  -1 siblings, 2 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, alsa-devel, Liam Girdwood, Mark Brown

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: alsa-devel@alsa-project.org
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Mark Brown <broonie@kernel.org>
---
 sound/soc/spear/spdif_out.c |   20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c
index 4bde512..896ee7f 100644
--- a/sound/soc/spear/spdif_out.c
+++ b/sound/soc/spear/spdif_out.c
@@ -282,27 +282,17 @@ static int spdif_out_probe(struct platform_device *pdev)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!res)
-		return -EINVAL;
-
-	if (!devm_request_mem_region(&pdev->dev, res->start,
-				resource_size(res), pdev->name)) {
-		dev_warn(&pdev->dev, "Failed to get memory resourse\n");
-		return -ENOENT;
-	}
-
 	host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
 	if (!host) {
 		dev_warn(&pdev->dev, "kzalloc fail\n");
 		return -ENOMEM;
 	}
 
-	host->io_base = devm_request_and_ioremap(&pdev->dev, res->start,
-				resource_size(res));
-	if (!host->io_base) {
-		dev_warn(&pdev->dev, "ioremap failed\n");
-		return -ENOMEM;
+	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	host->io_base = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(host->io_base)) {
+		dev_warn(&pdev->dev, "devm_ioremap_resource failed\n");
+		return PTR_ERR(host->io_base);
 	}
 
 	host->clk = devm_clk_get(&pdev->dev, NULL);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 13/15] pci: mvebu: Convert to use devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (12 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-10 14:29   ` Sachin Kamat
  2013-06-17  9:16   ` [PATCH V2 6/6] " Tushar Behera
  -1 siblings, 2 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, linux-pci, Bjorn Helgaas

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-pci@vger.kernel.org
CC: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/host/pci-mvebu.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 13a633b..e714876 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -752,7 +752,7 @@ mvebu_pcie_map_registers(struct platform_device *pdev,
 	if (ret)
 		return NULL;
 
-	return devm_request_and_ioremap(&pdev->dev, &regs);
+	return devm_ioremap_resource(&pdev->dev, &regs);
 }
 
 static int __init mvebu_pcie_probe(struct platform_device *pdev)
@@ -842,9 +842,10 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
 			continue;
 
 		port->base = mvebu_pcie_map_registers(pdev, child, port);
-		if (!port->base) {
+		if (IS_ERR(port->base)) {
 			dev_err(&pdev->dev, "PCIe%d.%d: cannot map registers\n",
 				port->port, port->lane);
+			port->base = NULL;
 			continue;
 		}
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 14/15] usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource
  2013-06-10 11:46 ` Tushar Behera
                   ` (13 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-10 12:17   ` Sergei Shtylyov
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, linux-usb, Felipe Balbi

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-usb@vger.kernel.org
CC: Felipe Balbi <balbi@ti.com>
---
 drivers/usb/phy/phy-rcar-usb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rcar-usb.c
index a35681b..23c3dd3 100644
--- a/drivers/usb/phy/phy-rcar-usb.c
+++ b/drivers/usb/phy/phy-rcar-usb.c
@@ -161,7 +161,7 @@ static int rcar_usb_phy_probe(struct platform_device *pdev)
 	 * CAUTION
 	 *
 	 * Because this phy address is also mapped under OHCI/EHCI address area,
-	 * this driver can't use devm_request_and_ioremap(dev, res) here
+	 * this driver can't use devm_ioremap_resource(dev, res) here
 	 */
 	reg0 = devm_ioremap_nocache(dev, res0->start, resource_size(res0));
 	reg1 = devm_ioremap_nocache(dev, res1->start, resource_size(res1));
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap
  2013-06-10 11:46 ` Tushar Behera
                   ` (14 preceding siblings ...)
  (?)
@ 2013-06-10 11:35 ` Tushar Behera
  2013-06-12 12:43   ` Andy Shevchenko
  -1 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, linux-doc, Rob Landley, Greg Kroah-Hartman

Now that all the users of devm_request_and_ioremap have been converted
to use devm_ioremap_resource, remove the definition.

Also remove the entries from Documentation.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-doc@vger.kernel.org
CC: Rob Landley <rob@landley.net>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 Documentation/driver-model/devres.txt |    1 -
 include/linux/device.h                |    2 --
 lib/devres.c                          |   28 ----------------------------
 3 files changed, 31 deletions(-)

diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index b467145..c085bbb 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -267,7 +267,6 @@ IOMAP
   devm_ioremap_nocache()
   devm_iounmap()
   devm_ioremap_resource() : checks resource, requests memory region, ioremaps
-  devm_request_and_ioremap() : obsoleted by devm_ioremap_resource()
   pcim_iomap()
   pcim_iounmap()
   pcim_iomap_table()	: array of mapped addresses indexed by BAR
diff --git a/include/linux/device.h b/include/linux/device.h
index eeb3331..ba99ee2 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -580,8 +580,6 @@ extern void *devm_kzalloc(struct device *dev, size_t size, gfp_t gfp);
 extern void devm_kfree(struct device *dev, void *p);
 
 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res);
-void __iomem *devm_request_and_ioremap(struct device *dev,
-			struct resource *res);
 
 /* allows to add/remove a custom action to devres stack */
 int devm_add_action(struct device *dev, void (*action)(void *), void *data);
diff --git a/lib/devres.c b/lib/devres.c
index 8235331..3ddb56d 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -140,34 +140,6 @@ void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res)
 }
 EXPORT_SYMBOL(devm_ioremap_resource);
 
-/**
- * devm_request_and_ioremap() - Check, request region, and ioremap resource
- * @dev: Generic device to handle the resource for
- * @res: resource to be handled
- *
- * Takes all necessary steps to ioremap a mem resource. Uses managed device, so
- * everything is undone on driver detach. Checks arguments, so you can feed
- * it the result from e.g. platform_get_resource() directly. Returns the
- * remapped pointer or NULL on error. Usage example:
- *
- *	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- *	base = devm_request_and_ioremap(&pdev->dev, res);
- *	if (!base)
- *		return -EADDRNOTAVAIL;
- */
-void __iomem *devm_request_and_ioremap(struct device *device,
-				       struct resource *res)
-{
-	void __iomem *dest_ptr;
-
-	dest_ptr = devm_ioremap_resource(device, res);
-	if (IS_ERR(dest_ptr))
-		return NULL;
-
-	return dest_ptr;
-}
-EXPORT_SYMBOL(devm_request_and_ioremap);
-
 #ifdef CONFIG_HAS_IOPORT
 /*
  * Generic iomap devres
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH 00/15] Convert to use devm_ioremap_resource
@ 2013-06-10 11:46 ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:46 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, alsa-devel, devel, linux-can, linux-doc,
	linux-gpio, linux-mmc, linux-pci, linux-usb, netdev, sparclinux,
	Bjorn Helgaas, Chris Ball, Dan Williams, David S. Miller,
	Felipe Balbi, Grant Likely, Greg Kroah-Hartman, Liam Girdwood,
	Linus Walleij, Marc Kleine-Budde, Mark Brown, Michal Simek,
	Rob Landley, Vinod Koul, Wolfgang Grandegger

These are the remaining instances of devm_request_and_ioremap. Convert
them to use devm_ioremap_resource as introduced by commit
75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()).
Patches 1 to 13 remove occurrences of devm_request_and_ioremap.
Patch 14 modifies one comment that speaks about devm_request_and_ioremap.
Patch 15 removes the definition of devm_request_and_ioremap which
should only be applied if all other pathces are merged.

Tushar Behera (15):
  sparc,leon: Convert to use devm_ioremap_resource
  sudmac: Convert to use devm_ioremap_resource
  mmc: mvsdio: Convert to use devm_ioremap_resource
  gpio_msm: Convert to use devm_ioremap_resource
  gpio-sta2x11: Convert to use devm_ioremap_resource
  net: bcm63xx_enet: Convert to use devm_ioremap_resource
  net: fec: Convert to use devm_ioremap_resource
  net: emaclite: Convert to use devm_ioremap_resource
  net: can: Convert to use devm_ioremap_resource
  Staging: netlogic: Convert to use devm_ioremap_resource
  regulator: ti-abb: Convert to use devm_ioremap_resource
  ASoC: spear: Convert to use devm_ioremap_resource
  pci: mvebu: Convert to use devm_ioremap_resource
  usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource
  lib: devres: Remove deprecated devm_request_and_ioremap

 Documentation/driver-model/devres.txt         |    1 -
 arch/sparc/kernel/leon_pci_grpci1.c           |    6 +++---
 drivers/dma/sh/sudmac.c                       |    6 +++---
 drivers/gpio/gpio-msm-v1.c                    |   12 +++++------
 drivers/gpio/gpio-sta2x11.c                   |    4 +++-
 drivers/mmc/host/mvsdio.c                     |    6 +++---
 drivers/net/can/c_can/c_can_platform.c        |    4 ++--
 drivers/net/ethernet/broadcom/bcm63xx_enet.c  |   12 +++++------
 drivers/net/ethernet/freescale/fec_main.c     |   12 +++++------
 drivers/net/ethernet/xilinx/xilinx_emaclite.c |    6 ++++--
 drivers/pci/host/pci-mvebu.c                  |    5 +++--
 drivers/regulator/ti-abb-regulator.c          |   12 +++++------
 drivers/staging/netlogic/xlr_net.c            |    8 +++----
 drivers/usb/phy/phy-rcar-usb.c                |    2 +-
 include/linux/device.h                        |    2 --
 lib/devres.c                                  |   28 -------------------------
 sound/soc/spear/spdif_out.c                   |   20 +++++-------------
 17 files changed, 55 insertions(+), 91 deletions(-)

CC: alsa-devel@alsa-project.org
CC: devel@driverdev.osuosl.org
CC: linux-can@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: linux-gpio@vger.kernel.org
CC: linux-mmc@vger.kernel.org
CC: linux-pci@vger.kernel.org
CC: linux-usb@vger.kernel.org
CC: netdev@vger.kernel.org
CC: sparclinux@vger.kernel.org
CC: Bjorn Helgaas <bhelgaas@google.com>
CC: Chris Ball <cjb@laptop.org>
CC: Dan Williams <djbw@fb.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Felipe Balbi <balbi@ti.com>
CC: Grant Likely <grant.likely@linaro.org>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Marc Kleine-Budde <mkl@pengutronix.de>
CC: Mark Brown <broonie@kernel.org>
CC: Michal Simek <michal.simek@xilinx.com>
CC: Rob Landley <rob@landley.net>
CC: Vinod Koul <vinod.koul@intel.com>
CC: Wolfgang Grandegger <wg@grandegger.com>
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
@ 2013-06-10 11:46   ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-10 11:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, sparclinux, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: sparclinux@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
* Not compile tested.
 arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index 7739a54..23497f4 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
 
 	/* find device register base address */
 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
-	regs = devm_request_and_ioremap(&ofdev->dev, res);
-	if (!regs) {
+	regs = devm_ioremap_resource(&ofdev->dev, res);
+	if (IS_ERR(regs)) {
 		dev_err(&ofdev->dev, "io-regs mapping failed\n");
-		return -EADDRNOTAVAIL;
+		return PTR_ERR(regs);
 	}
 
 	/*
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 11/15] regulator: ti-abb: " Tushar Behera
@ 2013-06-10 12:01   ` Sachin Kamat
  2013-06-11  4:31     ` Tushar Behera
  2013-06-17  9:12   ` Tushar Behera
  2013-06-18  4:15   ` [PATCH V2 " Tushar Behera
  2 siblings, 1 reply; 67+ messages in thread
From: Sachin Kamat @ 2013-06-10 12:01 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, Mark Brown, Liam Girdwood

On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: Mark Brown <broonie@kernel.org>
> CC: Liam Girdwood <lgirdwood@gmail.com>
> ---
>  drivers/regulator/ti-abb-regulator.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c
> index 870d209..f494a11 100644
> --- a/drivers/regulator/ti-abb-regulator.c
> +++ b/drivers/regulator/ti-abb-regulator.c
> @@ -722,10 +722,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>                 ret = -ENODEV;
>                 goto err;
>         }
> -       abb->base = devm_request_and_ioremap(dev, res);
> -       if (!abb->base) {
> +       abb->base = devm_ioremap_resource(dev, res);
> +       if (IS_ERR(abb->base)) {
>                 dev_err(dev, "Unable to map '%s'\n", pname);

You may remove the above error message as devm_ioremap_resource prints
its own error messages.

> -               ret = -ENOMEM;
> +               ret = PTR_ERR(abb->base);
>                 goto err;
>         }
>
> @@ -776,10 +776,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>                 ret = -ENODEV;
>                 goto skip_opt;
>         }
> -       abb->ldo_base = devm_request_and_ioremap(dev, res);
> -       if (!abb->ldo_base) {
> +       abb->ldo_base = devm_ioremap_resource(dev, res);
> +       if (IS_ERR(abb->ldo_base)) {
>                 dev_err(dev, "Unable to map '%s'\n", pname);

ditto

> -               ret = -ENOMEM;
> +               ret = PTR_ERR(abb->ldo_base);
>                 goto err;
>         }
>
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
  2013-06-10 11:46   ` Tushar Behera
@ 2013-06-10 12:15     ` Sachin Kamat
  -1 siblings, 0 replies; 67+ messages in thread
From: Sachin Kamat @ 2013-06-10 12:03 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, sparclinux, David S. Miller

On 10 June 2013 17:04, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: sparclinux@vger.kernel.org
> CC: "David S. Miller" <davem@davemloft.net>
> ---
> * Not compile tested.
>  arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
> index 7739a54..23497f4 100644
> --- a/arch/sparc/kernel/leon_pci_grpci1.c
> +++ b/arch/sparc/kernel/leon_pci_grpci1.c
> @@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
>
>         /* find device register base address */
>         res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
> -       regs = devm_request_and_ioremap(&ofdev->dev, res);
> -       if (!regs) {
> +       regs = devm_ioremap_resource(&ofdev->dev, res);
> +       if (IS_ERR(regs)) {
>                 dev_err(&ofdev->dev, "io-regs mapping failed\n");

You may remove the above error message as devm_ioremap_resource prints
its own error messages.

> -               return -EADDRNOTAVAIL;
> +               return PTR_ERR(regs);
>         }
>
>         /*
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 12/15] ASoC: spear: " Tushar Behera
@ 2013-06-10 12:06   ` Sachin Kamat
  2013-06-11  3:51     ` Tushar Behera
  2013-06-17  9:13   ` [PATCH V2 " Tushar Behera
  1 sibling, 1 reply; 67+ messages in thread
From: Sachin Kamat @ 2013-06-10 12:06 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, alsa-devel, Liam Girdwood,
	Mark Brown

On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

This patch does a little more than just conversion. May that change
could be mentioned here.

>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: alsa-devel@alsa-project.org
> CC: Liam Girdwood <lgirdwood@gmail.com>
> CC: Mark Brown <broonie@kernel.org>
> ---
>  sound/soc/spear/spdif_out.c |   20 +++++---------------
>  1 file changed, 5 insertions(+), 15 deletions(-)
>
> diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c
> index 4bde512..896ee7f 100644
> --- a/sound/soc/spear/spdif_out.c
> +++ b/sound/soc/spear/spdif_out.c
> @@ -282,27 +282,17 @@ static int spdif_out_probe(struct platform_device *pdev)
>         struct resource *res;
>         int ret;
>
> -       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -       if (!res)
> -               return -EINVAL;
> -
> -       if (!devm_request_mem_region(&pdev->dev, res->start,
> -                               resource_size(res), pdev->name)) {
> -               dev_warn(&pdev->dev, "Failed to get memory resourse\n");
> -               return -ENOENT;
> -       }
> -
>         host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
>         if (!host) {
>                 dev_warn(&pdev->dev, "kzalloc fail\n");
>                 return -ENOMEM;
>         }
>
> -       host->io_base = devm_request_and_ioremap(&pdev->dev, res->start,
> -                               resource_size(res));
> -       if (!host->io_base) {
> -               dev_warn(&pdev->dev, "ioremap failed\n");
> -               return -ENOMEM;
> +       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> +       host->io_base = devm_ioremap_resource(&pdev->dev, res);
> +       if (IS_ERR(host->io_base)) {
> +               dev_warn(&pdev->dev, "devm_ioremap_resource failed\n");

This print is not needed as devm_ioremap_resource prints its own messages.


> +               return PTR_ERR(host->io_base);
>         }
>
>         host->clk = devm_clk_get(&pdev->dev, NULL);
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
@ 2013-06-10 12:15     ` Sachin Kamat
  0 siblings, 0 replies; 67+ messages in thread
From: Sachin Kamat @ 2013-06-10 12:15 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, sparclinux, David S. Miller

On 10 June 2013 17:04, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: sparclinux@vger.kernel.org
> CC: "David S. Miller" <davem@davemloft.net>
> ---
> * Not compile tested.
>  arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
> index 7739a54..23497f4 100644
> --- a/arch/sparc/kernel/leon_pci_grpci1.c
> +++ b/arch/sparc/kernel/leon_pci_grpci1.c
> @@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
>
>         /* find device register base address */
>         res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
> -       regs = devm_request_and_ioremap(&ofdev->dev, res);
> -       if (!regs) {
> +       regs = devm_ioremap_resource(&ofdev->dev, res);
> +       if (IS_ERR(regs)) {
>                 dev_err(&ofdev->dev, "io-regs mapping failed\n");

You may remove the above error message as devm_ioremap_resource prints
its own error messages.

> -               return -EADDRNOTAVAIL;
> +               return PTR_ERR(regs);
>         }
>
>         /*
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 14/15] usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 14/15] usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource Tushar Behera
@ 2013-06-10 12:17   ` Sergei Shtylyov
  2013-06-11  3:21     ` Tushar Behera
  0 siblings, 1 reply; 67+ messages in thread
From: Sergei Shtylyov @ 2013-06-10 12:17 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, linux-usb, Felipe Balbi

Hello.

On 10-06-2013 15:35, Tushar Behera wrote:

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-usb@vger.kernel.org
> CC: Felipe Balbi <balbi@ti.com>
> ---
>   drivers/usb/phy/phy-rcar-usb.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

> diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rcar-usb.c
> index a35681b..23c3dd3 100644
> --- a/drivers/usb/phy/phy-rcar-usb.c
> +++ b/drivers/usb/phy/phy-rcar-usb.c
> @@ -161,7 +161,7 @@ static int rcar_usb_phy_probe(struct platform_device *pdev)
>   	 * CAUTION
>   	 *
>   	 * Because this phy address is also mapped under OHCI/EHCI address area,
> -	 * this driver can't use devm_request_and_ioremap(dev, res) here
> +	 * this driver can't use devm_ioremap_resource(dev, res) here
>   	 */
>   	reg0 = devm_ioremap_nocache(dev, res0->start, resource_size(res0));
>   	reg1 = devm_ioremap_nocache(dev, res1->start, resource_size(res1));

     I'm completely removing this comment in my series pushed thru 
renesas.git, so I advise this patch to be ignored not to create conflict 
in the future.

WBR, Sergei


^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 09/15] net: can: " Tushar Behera
@ 2013-06-10 13:09   ` Marc Kleine-Budde
  2013-06-11  3:15     ` Tushar Behera
  2013-06-12  9:23   ` David Miller
  2013-06-13  5:30   ` Tushar Behera
  2 siblings, 1 reply; 67+ messages in thread
From: Marc Kleine-Budde @ 2013-06-10 13:09 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, netdev, linux-can,
	Wolfgang Grandegger

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

On 06/10/2013 01:35 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>

Are the patches going over the individual subsystem maintainers?

Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 13/15] pci: mvebu: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 13/15] pci: mvebu: " Tushar Behera
@ 2013-06-10 14:29   ` Sachin Kamat
  2013-06-11  4:51     ` Tushar Behera
  2013-06-17  9:16   ` [PATCH V2 6/6] " Tushar Behera
  1 sibling, 1 reply; 67+ messages in thread
From: Sachin Kamat @ 2013-06-10 14:29 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, linux-pci, Bjorn Helgaas

On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-pci@vger.kernel.org
> CC: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/pci/host/pci-mvebu.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
> index 13a633b..e714876 100644
> --- a/drivers/pci/host/pci-mvebu.c
> +++ b/drivers/pci/host/pci-mvebu.c
> @@ -752,7 +752,7 @@ mvebu_pcie_map_registers(struct platform_device *pdev,
>         if (ret)
>                 return NULL;
>
> -       return devm_request_and_ioremap(&pdev->dev, &regs);
> +       return devm_ioremap_resource(&pdev->dev, &regs);
>  }
>
>  static int __init mvebu_pcie_probe(struct platform_device *pdev)
> @@ -842,9 +842,10 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
>                         continue;
>
>                 port->base = mvebu_pcie_map_registers(pdev, child, port);
> -               if (!port->base) {
> +               if (IS_ERR(port->base)) {
>                         dev_err(&pdev->dev, "PCIe%d.%d: cannot map registers\n",
>                                 port->port, port->lane);

This error message is redundant.

> +                       port->base = NULL;
Probably this is also not needed.

>                         continue;
>                 }
>
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
  2013-06-10 12:15     ` Sachin Kamat
@ 2013-06-11  3:19       ` Tushar Behera
  -1 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  3:07 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-kernel, thierry.reding, patches, sparclinux, David S. Miller

On 06/10/2013 05:33 PM, Sachin Kamat wrote:
> On 10 June 2013 17:04, Tushar Behera <tushar.behera@linaro.org> wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: sparclinux@vger.kernel.org
>> CC: "David S. Miller" <davem@davemloft.net>
>> ---
>> * Not compile tested.
>>  arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
>> index 7739a54..23497f4 100644
>> --- a/arch/sparc/kernel/leon_pci_grpci1.c
>> +++ b/arch/sparc/kernel/leon_pci_grpci1.c
>> @@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
>>
>>         /* find device register base address */
>>         res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
>> -       regs = devm_request_and_ioremap(&ofdev->dev, res);
>> -       if (!regs) {
>> +       regs = devm_ioremap_resource(&ofdev->dev, res);
>> +       if (IS_ERR(regs)) {
>>                 dev_err(&ofdev->dev, "io-regs mapping failed\n");
> 
> You may remove the above error message as devm_ioremap_resource prints
> its own error messages.
> 

Ok. I will remove the error message. I will do the same for other
instances too.

Thanks.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-10 13:09   ` Marc Kleine-Budde
@ 2013-06-11  3:15     ` Tushar Behera
  2013-06-12  3:09       ` 'Greg Kroah-Hartman'
  0 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  3:15 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: linux-kernel, thierry.reding, patches, netdev, linux-can,
	Wolfgang Grandegger, 'Greg Kroah-Hartman'

+CC: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>

On 06/10/2013 06:39 PM, Marc Kleine-Budde wrote:
> On 06/10/2013 01:35 PM, Tushar Behera wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
> 
> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
> 
> Are the patches going over the individual subsystem maintainers?
> 
> Marc
> 

I am not sure. Looping in Greg for clarity.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource
@ 2013-06-11  3:19       ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  3:19 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-kernel, thierry.reding, patches, sparclinux, David S. Miller

On 06/10/2013 05:33 PM, Sachin Kamat wrote:
> On 10 June 2013 17:04, Tushar Behera <tushar.behera@linaro.org> wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: sparclinux@vger.kernel.org
>> CC: "David S. Miller" <davem@davemloft.net>
>> ---
>> * Not compile tested.
>>  arch/sparc/kernel/leon_pci_grpci1.c |    6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
>> index 7739a54..23497f4 100644
>> --- a/arch/sparc/kernel/leon_pci_grpci1.c
>> +++ b/arch/sparc/kernel/leon_pci_grpci1.c
>> @@ -536,10 +536,10 @@ static int grpci1_of_probe(struct platform_device *ofdev)
>>
>>         /* find device register base address */
>>         res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
>> -       regs = devm_request_and_ioremap(&ofdev->dev, res);
>> -       if (!regs) {
>> +       regs = devm_ioremap_resource(&ofdev->dev, res);
>> +       if (IS_ERR(regs)) {
>>                 dev_err(&ofdev->dev, "io-regs mapping failed\n");
> 
> You may remove the above error message as devm_ioremap_resource prints
> its own error messages.
> 

Ok. I will remove the error message. I will do the same for other
instances too.

Thanks.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 14/15] usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource
  2013-06-10 12:17   ` Sergei Shtylyov
@ 2013-06-11  3:21     ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  3:21 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-kernel, thierry.reding, patches, linux-usb, Felipe Balbi

On 06/10/2013 05:47 PM, Sergei Shtylyov wrote:
> Hello.
> 
> On 10-06-2013 15:35, Tushar Behera wrote:
> 

[ ... ]

>>        * CAUTION
>>        *
>>        * Because this phy address is also mapped under OHCI/EHCI
>> address area,
>> -     * this driver can't use devm_request_and_ioremap(dev, res) here
>> +     * this driver can't use devm_ioremap_resource(dev, res) here
>>        */
>>       reg0 = devm_ioremap_nocache(dev, res0->start, resource_size(res0));
>>       reg1 = devm_ioremap_nocache(dev, res1->start, resource_size(res1));
> 
>     I'm completely removing this comment in my series pushed thru
> renesas.git, so I advise this patch to be ignored not to create conflict
> in the future.
> 

Ok. I will drop this from the patchset.

> WBR, Sergei
> 

Thanks.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-10 12:06   ` Sachin Kamat
@ 2013-06-11  3:51     ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  3:51 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-kernel, thierry.reding, patches, alsa-devel, Liam Girdwood,
	Mark Brown

On 06/10/2013 05:36 PM, Sachin Kamat wrote:
> On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
> 
> This patch does a little more than just conversion. May that change
> could be mentioned here.
> 

Sure. I will update that.

>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: alsa-devel@alsa-project.org
>> CC: Liam Girdwood <lgirdwood@gmail.com>
>> CC: Mark Brown <broonie@kernel.org>
>> ---
>>  sound/soc/spear/spdif_out.c |   20 +++++---------------
>>  1 file changed, 5 insertions(+), 15 deletions(-)
>>
>> diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c
>> index 4bde512..896ee7f 100644
>> --- a/sound/soc/spear/spdif_out.c
>> +++ b/sound/soc/spear/spdif_out.c
>> @@ -282,27 +282,17 @@ static int spdif_out_probe(struct platform_device *pdev)
>>         struct resource *res;
>>         int ret;
>>
>> -       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> -       if (!res)
>> -               return -EINVAL;
>> -
>> -       if (!devm_request_mem_region(&pdev->dev, res->start,
>> -                               resource_size(res), pdev->name)) {
>> -               dev_warn(&pdev->dev, "Failed to get memory resourse\n");
>> -               return -ENOENT;
>> -       }
>> -
>>         host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
>>         if (!host) {
>>                 dev_warn(&pdev->dev, "kzalloc fail\n");
>>                 return -ENOMEM;
>>         }
>>
>> -       host->io_base = devm_request_and_ioremap(&pdev->dev, res->start,
>> -                               resource_size(res));
>> -       if (!host->io_base) {
>> -               dev_warn(&pdev->dev, "ioremap failed\n");
>> -               return -ENOMEM;
>> +       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> +       host->io_base = devm_ioremap_resource(&pdev->dev, res);
>> +       if (IS_ERR(host->io_base)) {
>> +               dev_warn(&pdev->dev, "devm_ioremap_resource failed\n");
> 
> This print is not needed as devm_ioremap_resource prints its own messages.
> 
> 

Ok.

Thanks.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-10 12:01   ` Sachin Kamat
@ 2013-06-11  4:31     ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  4:31 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-kernel, thierry.reding, patches, Mark Brown, Liam Girdwood

On 06/10/2013 05:31 PM, Sachin Kamat wrote:
> On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: Mark Brown <broonie@kernel.org>
>> CC: Liam Girdwood <lgirdwood@gmail.com>
>> ---
>>  drivers/regulator/ti-abb-regulator.c |   12 ++++++------
>>  1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c
>> index 870d209..f494a11 100644
>> --- a/drivers/regulator/ti-abb-regulator.c
>> +++ b/drivers/regulator/ti-abb-regulator.c
>> @@ -722,10 +722,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>>                 ret = -ENODEV;
>>                 goto err;
>>         }
>> -       abb->base = devm_request_and_ioremap(dev, res);
>> -       if (!abb->base) {
>> +       abb->base = devm_ioremap_resource(dev, res);
>> +       if (IS_ERR(abb->base)) {
>>                 dev_err(dev, "Unable to map '%s'\n", pname);
> 
> You may remove the above error message as devm_ioremap_resource prints
> its own error messages.
> 

There are a few other error messages in the driver (related to
devm_ioremap_nocache) in the same format. I would prefer to leave this
error message right now.

>> -               ret = -ENOMEM;
>> +               ret = PTR_ERR(abb->base);
>>                 goto err;
>>         }
>>
>> @@ -776,10 +776,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>>                 ret = -ENODEV;
>>                 goto skip_opt;
>>         }
>> -       abb->ldo_base = devm_request_and_ioremap(dev, res);
>> -       if (!abb->ldo_base) {
>> +       abb->ldo_base = devm_ioremap_resource(dev, res);
>> +       if (IS_ERR(abb->ldo_base)) {
>>                 dev_err(dev, "Unable to map '%s'\n", pname);
> 
> ditto
> 

Same as above.

Thanks.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 13/15] pci: mvebu: Convert to use devm_ioremap_resource
  2013-06-10 14:29   ` Sachin Kamat
@ 2013-06-11  4:51     ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-11  4:51 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-kernel, thierry.reding, patches, linux-pci, Bjorn Helgaas

On 06/10/2013 07:59 PM, Sachin Kamat wrote:
> On 10 June 2013 17:05, Tushar Behera <tushar.behera@linaro.org> wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: linux-pci@vger.kernel.org
>> CC: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  drivers/pci/host/pci-mvebu.c |    5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
>> index 13a633b..e714876 100644
>> --- a/drivers/pci/host/pci-mvebu.c
>> +++ b/drivers/pci/host/pci-mvebu.c
>> @@ -752,7 +752,7 @@ mvebu_pcie_map_registers(struct platform_device *pdev,
>>         if (ret)
>>                 return NULL;
>>
>> -       return devm_request_and_ioremap(&pdev->dev, &regs);
>> +       return devm_ioremap_resource(&pdev->dev, &regs);
>>  }
>>
>>  static int __init mvebu_pcie_probe(struct platform_device *pdev)
>> @@ -842,9 +842,10 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
>>                         continue;
>>
>>                 port->base = mvebu_pcie_map_registers(pdev, child, port);
>> -               if (!port->base) {
>> +               if (IS_ERR(port->base)) {
>>                         dev_err(&pdev->dev, "PCIe%d.%d: cannot map registers\n",
>>                                 port->port, port->lane);
> 
> This error message is redundant.
> 

It provides a little more information regarding the port and lane number
which might be useful in debugging.

>> +                       port->base = NULL;
> Probably this is also not needed.
> 

I was not sure about the default error value for port->base, hence I
replicated the old behaviour.

Thanks.
-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-11  3:15     ` Tushar Behera
@ 2013-06-12  3:09       ` 'Greg Kroah-Hartman'
  0 siblings, 0 replies; 67+ messages in thread
From: 'Greg Kroah-Hartman' @ 2013-06-12  3:09 UTC (permalink / raw)
  To: Tushar Behera
  Cc: Marc Kleine-Budde, linux-kernel, thierry.reding, patches, netdev,
	linux-can, Wolfgang Grandegger

On Tue, Jun 11, 2013 at 08:45:47AM +0530, Tushar Behera wrote:
> +CC: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>
> 
> On 06/10/2013 06:39 PM, Marc Kleine-Budde wrote:
> > On 06/10/2013 01:35 PM, Tushar Behera wrote:
> >> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> >> introduced devm_ioremap_resource() and deprecated the use of
> >> devm_request_and_ioremap().
> > 
> > Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
> > 
> > Are the patches going over the individual subsystem maintainers?
> > 
> > Marc
> > 
> 
> I am not sure. Looping in Greg for clarity.

I'm taking the ones for my subsystem(s), the last one should probably go
in after 3.11-rc1 is released, in order to ensure no remaining in-tree
users of the function are still around.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 06/15] net: bcm63xx_enet: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 06/15] net: bcm63xx_enet: " Tushar Behera
@ 2013-06-12  9:23   ` David Miller
  0 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-12  9:23 UTC (permalink / raw)
  To: tushar.behera; +Cc: linux-kernel, thierry.reding, patches, netdev

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 10 Jun 2013 17:05:04 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

In net-next, the driver is already using devm_ioremap_resource().

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 07/15] net: fec: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 07/15] net: fec: " Tushar Behera
@ 2013-06-12  9:23   ` David Miller
  0 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-12  9:23 UTC (permalink / raw)
  To: tushar.behera; +Cc: linux-kernel, thierry.reding, patches, netdev

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 10 Jun 2013 17:05:05 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

Applied.

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 08/15] net: emaclite: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 08/15] net: emaclite: " Tushar Behera
@ 2013-06-12  9:23   ` David Miller
  0 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-12  9:23 UTC (permalink / raw)
  To: tushar.behera; +Cc: linux-kernel, thierry.reding, patches, netdev, michal.simek

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 10 Jun 2013 17:05:06 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

Applied.

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 09/15] net: can: " Tushar Behera
  2013-06-10 13:09   ` Marc Kleine-Budde
@ 2013-06-12  9:23   ` David Miller
  2013-06-13  5:30   ` Tushar Behera
  2 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-12  9:23 UTC (permalink / raw)
  To: tushar.behera
  Cc: linux-kernel, thierry.reding, patches, netdev, linux-can, mkl, wg

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 10 Jun 2013 17:05:07 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

Applied.

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap
  2013-06-10 11:35 ` [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap Tushar Behera
@ 2013-06-12 12:43   ` Andy Shevchenko
  2013-06-12 17:39     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 67+ messages in thread
From: Andy Shevchenko @ 2013-06-12 12:43 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, Linux Documentation List,
	Rob Landley, Greg Kroah-Hartman

On Mon, Jun 10, 2013 at 2:35 PM, Tushar Behera <tushar.behera@linaro.org> wrote:
> Now that all the users of devm_request_and_ioremap have been converted
> to use devm_ioremap_resource, remove the definition.

This is a function which was exported to the drivers including
third-party drivers.
I suggest to mark it as __deprecated and wait couple of release cycles.



--
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap
  2013-06-12 12:43   ` Andy Shevchenko
@ 2013-06-12 17:39     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 67+ messages in thread
From: Greg Kroah-Hartman @ 2013-06-12 17:39 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Tushar Behera, linux-kernel, thierry.reding, patches,
	Linux Documentation List, Rob Landley

On Wed, Jun 12, 2013 at 03:43:59PM +0300, Andy Shevchenko wrote:
> On Mon, Jun 10, 2013 at 2:35 PM, Tushar Behera <tushar.behera@linaro.org> wrote:
> > Now that all the users of devm_request_and_ioremap have been converted
> > to use devm_ioremap_resource, remove the definition.
> 
> This is a function which was exported to the drivers including
> third-party drivers.

That doesn't matter, we've cleaned up all in-kernel users of it, so we
can safely delete it.

> I suggest to mark it as __deprecated and wait couple of release cycles.

No, that's not going to help anyone, just delete it and move on.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 09/15] net: can: " Tushar Behera
  2013-06-10 13:09   ` Marc Kleine-Budde
  2013-06-12  9:23   ` David Miller
@ 2013-06-13  5:30   ` Tushar Behera
  2013-06-13  5:41     ` Sachin Kamat
  2 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-13  5:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, netdev, linux-can, Marc Kleine-Budde,
	Wolfgang Grandegger, David S. Miller,
	'Greg Kroah-Hartman'

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: netdev@vger.kernel.org
> CC: linux-can@vger.kernel.org
> CC: Marc Kleine-Budde <mkl@pengutronix.de>
> CC: Wolfgang Grandegger <wg@grandegger.com>
> ---
>  drivers/net/can/c_can/c_can_platform.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c
> index 6b6130b..b918c73 100644
> --- a/drivers/net/can/c_can/c_can_platform.c
> +++ b/drivers/net/can/c_can/c_can_platform.c
> @@ -201,8 +201,8 @@ static int c_can_plat_probe(struct platform_device *pdev)
>  			priv->instance = pdev->id;
>  
>  		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
> -		priv->raminit_ctrlreg =	devm_request_and_ioremap(&pdev->dev, res);
> -		if (!priv->raminit_ctrlreg || priv->instance < 0)
> +		priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
> +		if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
>  			dev_info(&pdev->dev, "control memory is not used for raminit\n");
>  		else
>  			priv->raminit = c_can_hw_raminit;
> 

IS_ERR() check on the return value of devm_ioremap_resource produces
following sparse warning. This is because of the __iomem address space
attribute. How should we fix this?

drivers/net/can/c_can/c_can_platform.c:205:32: warning: incorrect type
in argument 1 (different address spaces)
drivers/net/can/c_can/c_can_platform.c:205:32:    expected void const *ptr
drivers/net/can/c_can/c_can_platform.c:205:32:    got unsigned int
[noderef] [usertype] <asn:2>*raminit_ctrlreg


-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource
  2013-06-13  5:30   ` Tushar Behera
@ 2013-06-13  5:41     ` Sachin Kamat
  0 siblings, 0 replies; 67+ messages in thread
From: Sachin Kamat @ 2013-06-13  5:41 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, netdev, linux-can,
	Marc Kleine-Budde, Wolfgang Grandegger, David S. Miller,
	Greg Kroah-Hartman

On 13 June 2013 11:00, Tushar Behera <tushar.behera@linaro.org> wrote:
> On 06/10/2013 05:05 PM, Tushar Behera wrote:
>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> introduced devm_ioremap_resource() and deprecated the use of
>> devm_request_and_ioremap().
>>
>> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> CC: netdev@vger.kernel.org
>> CC: linux-can@vger.kernel.org
>> CC: Marc Kleine-Budde <mkl@pengutronix.de>
>> CC: Wolfgang Grandegger <wg@grandegger.com>
>> ---
>>  drivers/net/can/c_can/c_can_platform.c |    4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c
>> index 6b6130b..b918c73 100644
>> --- a/drivers/net/can/c_can/c_can_platform.c
>> +++ b/drivers/net/can/c_can/c_can_platform.c
>> @@ -201,8 +201,8 @@ static int c_can_plat_probe(struct platform_device *pdev)
>>                       priv->instance = pdev->id;
>>
>>               res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
>> -             priv->raminit_ctrlreg = devm_request_and_ioremap(&pdev->dev, res);
>> -             if (!priv->raminit_ctrlreg || priv->instance < 0)
>> +             priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
>> +             if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
>>                       dev_info(&pdev->dev, "control memory is not used for raminit\n");
>>               else
>>                       priv->raminit = c_can_hw_raminit;
>>
>
> IS_ERR() check on the return value of devm_ioremap_resource produces
> following sparse warning. This is because of the __iomem address space
> attribute. How should we fix this?
>
> drivers/net/can/c_can/c_can_platform.c:205:32: warning: incorrect type
> in argument 1 (different address spaces)
> drivers/net/can/c_can/c_can_platform.c:205:32:    expected void const *ptr
> drivers/net/can/c_can/c_can_platform.c:205:32:    got unsigned int
> [noderef] [usertype] <asn:2>*raminit_ctrlreg
>

This is a known issue since the time devm_ioremap_resource was
introduced. Thierry had already submitted some fixes for this.
I am not sure if they have been applied yet.
More details here:
https://patchwork.kernel.org/patch/2071361/

-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 02/15] sudmac: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 02/15] sudmac: " Tushar Behera
@ 2013-06-17  6:11   ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  6:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, Vinod Koul, Dan Williams

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: Vinod Koul <vinod.koul@intel.com>
> CC: Dan Williams <djbw@fb.com>
> ---
>  drivers/dma/sh/sudmac.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
> index e7c94bb..0a81e30 100644
> --- a/drivers/dma/sh/sudmac.c
> +++ b/drivers/dma/sh/sudmac.c
> @@ -360,9 +360,9 @@ static int sudmac_probe(struct platform_device *pdev)
>  
>  	dma_dev = &su_dev->shdma_dev.dma_dev;
>  
> -	su_dev->chan_reg = devm_request_and_ioremap(&pdev->dev, chan);
> -	if (!su_dev->chan_reg)
> -		return err;
> +	su_dev->chan_reg = devm_ioremap_resource(&pdev->dev, chan);
> +	if (IS_ERR(su_dev->chan_reg))
> +		return PTR_ERR(su_dev->chan_reg);
>  
>  	dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);
>  
> 

Ping.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 03/15] mmc: mvsdio: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 03/15] mmc: mvsdio: " Tushar Behera
@ 2013-06-17  6:12   ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  6:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, linux-mmc, Chris Ball

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-mmc@vger.kernel.org
> CC: Chris Ball <cjb@laptop.org>
> ---
>  drivers/mmc/host/mvsdio.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
> index d08fe6a..656f1f5 100644
> --- a/drivers/mmc/host/mvsdio.c
> +++ b/drivers/mmc/host/mvsdio.c
> @@ -758,9 +758,9 @@ static int __init mvsd_probe(struct platform_device *pdev)
>  
>  	spin_lock_init(&host->lock);
>  
> -	host->base = devm_request_and_ioremap(&pdev->dev, r);
> -	if (!host->base) {
> -		ret = -ENOMEM;
> +	host->base = devm_ioremap_resource(&pdev->dev, r);
> +	if (IS_ERR(host->base)) {
> +		ret = PTR_ERR(host->base);
>  		goto out;
>  	}
>  
> 

Ping.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 04/15] gpio_msm: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 04/15] gpio_msm: " Tushar Behera
@ 2013-06-17  6:13   ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  6:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, linux-gpio, Linus Walleij, Grant Likely

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-gpio@vger.kernel.org
> CC: Linus Walleij <linus.walleij@linaro.org>
> CC: Grant Likely <grant.likely@linaro.org>
> ---
>  drivers/gpio/gpio-msm-v1.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
> index c798585a..c0ead43 100644
> --- a/drivers/gpio/gpio-msm-v1.c
> +++ b/drivers/gpio/gpio-msm-v1.c
> @@ -652,14 +652,14 @@ static int __devinit gpio_msm_v1_probe(struct platform_device *pdev)
>  		return irq2;
>  
>  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	base1 = devm_request_and_ioremap(&pdev->dev, res);
> -	if (!base1)
> -		return -EADDRNOTAVAIL;
> +	base1 = devm_ioremap_resource(&pdev->dev, res);
> +	if (IS_ERR(base1))
> +		return PTR_ERR(base1);
>  
>  	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
> -	base2 = devm_request_and_ioremap(&pdev->dev, res);
> -	if (!base2)
> -		return -EADDRNOTAVAIL;
> +	base2 = devm_ioremap_resource(&pdev->dev, res);
> +	if (IS_ERR(base2))
> +		return PTR_ERR(base2);
>  
>  	for (i = FIRST_GPIO_IRQ; i < FIRST_GPIO_IRQ + NR_GPIO_IRQS; i++) {
>  		if (i - FIRST_GPIO_IRQ >=
> 

Ping.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 05/15] gpio-sta2x11: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 05/15] gpio-sta2x11: " Tushar Behera
@ 2013-06-17  6:13   ` Tushar Behera
  2013-06-17  8:54   ` Linus Walleij
  1 sibling, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  6:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, linux-gpio, Grant Likely, Linus Walleij

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-gpio@vger.kernel.org
> CC: Grant Likely <grant.likely@linaro.org>
> CC: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/gpio/gpio-sta2x11.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c
> index 5585425..c977c14 100644
> --- a/drivers/gpio/gpio-sta2x11.c
> +++ b/drivers/gpio/gpio-sta2x11.c
> @@ -372,7 +372,9 @@ static int gsta_probe(struct platform_device *dev)
>  
>  	chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL);
>  	chip->dev = &dev->dev;
> -	chip->reg_base = devm_request_and_ioremap(&dev->dev, res);
> +	chip->reg_base = devm_ioremap_resource(&dev->dev, res);
> +	if (IS_ERR(chip->reg_base))
> +		return PTR_ERR(chip->reg_base);
>  
>  	for (i = 0; i < GSTA_NR_BLOCKS; i++) {
>  		chip->regs[i] = chip->reg_base + i * 4096;
> 

Ping.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 05/15] gpio-sta2x11: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 05/15] gpio-sta2x11: " Tushar Behera
  2013-06-17  6:13   ` Tushar Behera
@ 2013-06-17  8:54   ` Linus Walleij
  1 sibling, 0 replies; 67+ messages in thread
From: Linus Walleij @ 2013-06-17  8:54 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, Patch Tracking, linux-gpio, Grant Likely

On Mon, Jun 10, 2013 at 1:35 PM, Tushar Behera <tushar.behera@linaro.org> wrote:

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-gpio@vger.kernel.org
> CC: Grant Likely <grant.likely@linaro.org>
> CC: Linus Walleij <linus.walleij@linaro.org>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource
  2013-06-10 11:46   ` Tushar Behera
@ 2013-06-17  9:19     ` Tushar Behera
  -1 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  9:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, sachin.kamat, sparclinux, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

While at it, also remove the error message as devm_ioremap_resource()
also prints similar error message.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: sparclinux@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
Changes for V2:
* Removed redundant error message.

 arch/sparc/kernel/leon_pci_grpci1.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index 7739a54..6df26e3 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -536,11 +536,9 @@ static int grpci1_of_probe(struct platform_device *ofdev)
 
 	/* find device register base address */
 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
-	regs = devm_request_and_ioremap(&ofdev->dev, res);
-	if (!regs) {
-		dev_err(&ofdev->dev, "io-regs mapping failed\n");
-		return -EADDRNOTAVAIL;
-	}
+	regs = devm_ioremap_resource(&ofdev->dev, res);
+	if (IS_ERR(regs))
+		return PTR_ERR(regs);
 
 	/*
 	 * check that we're in Host Slot and that we can act as a Host Bridge
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 11/15] regulator: ti-abb: " Tushar Behera
  2013-06-10 12:01   ` Sachin Kamat
@ 2013-06-17  9:12   ` Tushar Behera
  2013-06-17 10:05     ` Mark Brown
  2013-06-18  4:15   ` [PATCH V2 " Tushar Behera
  2 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  9:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, patches, Mark Brown, Liam Girdwood

On 06/10/2013 05:05 PM, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: Mark Brown <broonie@kernel.org>
> CC: Liam Girdwood <lgirdwood@gmail.com>
> ---
>  drivers/regulator/ti-abb-regulator.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c
> index 870d209..f494a11 100644
> --- a/drivers/regulator/ti-abb-regulator.c
> +++ b/drivers/regulator/ti-abb-regulator.c
> @@ -722,10 +722,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>  		ret = -ENODEV;
>  		goto err;
>  	}
> -	abb->base = devm_request_and_ioremap(dev, res);
> -	if (!abb->base) {
> +	abb->base = devm_ioremap_resource(dev, res);
> +	if (IS_ERR(abb->base)) {
>  		dev_err(dev, "Unable to map '%s'\n", pname);
> -		ret = -ENOMEM;
> +		ret = PTR_ERR(abb->base);
>  		goto err;
>  	}
>  
> @@ -776,10 +776,10 @@ static int ti_abb_probe(struct platform_device *pdev)
>  		ret = -ENODEV;
>  		goto skip_opt;
>  	}
> -	abb->ldo_base = devm_request_and_ioremap(dev, res);
> -	if (!abb->ldo_base) {
> +	abb->ldo_base = devm_ioremap_resource(dev, res);
> +	if (IS_ERR(abb->ldo_base)) {
>  		dev_err(dev, "Unable to map '%s'\n", pname);
> -		ret = -ENOMEM;
> +		ret = PTR_ERR(abb->ldo_base);
>  		goto err;
>  	}
>  
> 

Ping.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH V2 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 12/15] ASoC: spear: " Tushar Behera
  2013-06-10 12:06   ` Sachin Kamat
@ 2013-06-17  9:13   ` Tushar Behera
  2013-06-17 10:20     ` Mark Brown
  1 sibling, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  9:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, sachin.kamat, alsa-devel, Liam Girdwood,
	Mark Brown

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

devm_request_mem_region is called in devm_ioremap_resource(). Hence that
part can also be removed.

Since devm_ioremap_resource prints error message on failure, there is
no need to print an explicit warning message.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: alsa-devel@alsa-project.org
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Mark Brown <broonie@kernel.org>
---
Changes for V2:
* Removed redundant print of error message from devm_ioremap_resource
exit path
* Call to devm_request_mem_region is removed.

 sound/soc/spear/spdif_out.c |   20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c
index 4bde512..64db05a 100644
--- a/sound/soc/spear/spdif_out.c
+++ b/sound/soc/spear/spdif_out.c
@@ -282,28 +282,16 @@ static int spdif_out_probe(struct platform_device *pdev)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!res)
-		return -EINVAL;
-
-	if (!devm_request_mem_region(&pdev->dev, res->start,
-				resource_size(res), pdev->name)) {
-		dev_warn(&pdev->dev, "Failed to get memory resourse\n");
-		return -ENOENT;
-	}
-
 	host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
 	if (!host) {
 		dev_warn(&pdev->dev, "kzalloc fail\n");
 		return -ENOMEM;
 	}
 
-	host->io_base = devm_request_and_ioremap(&pdev->dev, res->start,
-				resource_size(res));
-	if (!host->io_base) {
-		dev_warn(&pdev->dev, "ioremap failed\n");
-		return -ENOMEM;
-	}
+	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	host->io_base = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(host->io_base))
+		return PTR_ERR(host->io_base);
 
 	host->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(host->clk))
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH V2 6/6] pci: mvebu: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 13/15] pci: mvebu: " Tushar Behera
  2013-06-10 14:29   ` Sachin Kamat
@ 2013-06-17  9:16   ` Tushar Behera
  2013-07-23 18:38     ` Bjorn Helgaas
  1 sibling, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  9:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, sachin.kamat, linux-pci, Bjorn Helgaas

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

While at it, modify mvebu_pcie_map_registers() to propagate error code.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-pci@vger.kernel.org
CC: Bjorn Helgaas <bhelgaas@google.com>
---
Changes for V2:
* Return proper error code in mvebu_pcie_map_registers.

 drivers/pci/host/pci-mvebu.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 13a633b..8fc2a82 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -750,9 +750,9 @@ mvebu_pcie_map_registers(struct platform_device *pdev,
 
 	ret = of_address_to_resource(np, 0, &regs);
 	if (ret)
-		return NULL;
+		return ERR_PTR(ret);
 
-	return devm_request_and_ioremap(&pdev->dev, &regs);
+	return devm_ioremap_resource(&pdev->dev, &regs);
 }
 
 static int __init mvebu_pcie_probe(struct platform_device *pdev)
@@ -842,9 +842,10 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
 			continue;
 
 		port->base = mvebu_pcie_map_registers(pdev, child, port);
-		if (!port->base) {
+		if (IS_ERR(port->base)) {
 			dev_err(&pdev->dev, "PCIe%d.%d: cannot map registers\n",
 				port->port, port->lane);
+			port->base = NULL;
 			continue;
 		}
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource
@ 2013-06-17  9:19     ` Tushar Behera
  0 siblings, 0 replies; 67+ messages in thread
From: Tushar Behera @ 2013-06-17  9:19 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, sachin.kamat, sparclinux, David S. Miller

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

While at it, also remove the error message as devm_ioremap_resource()
also prints similar error message.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: sparclinux@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
---
Changes for V2:
* Removed redundant error message.

 arch/sparc/kernel/leon_pci_grpci1.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index 7739a54..6df26e3 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -536,11 +536,9 @@ static int grpci1_of_probe(struct platform_device *ofdev)
 
 	/* find device register base address */
 	res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
-	regs = devm_request_and_ioremap(&ofdev->dev, res);
-	if (!regs) {
-		dev_err(&ofdev->dev, "io-regs mapping failed\n");
-		return -EADDRNOTAVAIL;
-	}
+	regs = devm_ioremap_resource(&ofdev->dev, res);
+	if (IS_ERR(regs))
+		return PTR_ERR(regs);
 
 	/*
 	 * check that we're in Host Slot and that we can act as a Host Bridge
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-17  9:12   ` Tushar Behera
@ 2013-06-17 10:05     ` Mark Brown
  2013-06-17 10:34       ` Tushar Behera
  0 siblings, 1 reply; 67+ messages in thread
From: Mark Brown @ 2013-06-17 10:05 UTC (permalink / raw)
  To: Tushar Behera; +Cc: linux-kernel, thierry.reding, patches, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On Mon, Jun 17, 2013 at 02:42:25PM +0530, Tushar Behera wrote:
> On 06/10/2013 05:05 PM, Tushar Behera wrote:
> > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> > introduced devm_ioremap_resource() and deprecated the use of
> > devm_request_and_ioremap().

> Ping.

Don't send contentless pings.  I seem to recall you already got some
review on this.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-17  9:13   ` [PATCH V2 " Tushar Behera
@ 2013-06-17 10:20     ` Mark Brown
  2013-06-17 10:40       ` [PATCH V3 " Tushar Behera
  0 siblings, 1 reply; 67+ messages in thread
From: Mark Brown @ 2013-06-17 10:20 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, sachin.kamat, alsa-devel,
	Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

On Mon, Jun 17, 2013 at 02:43:08PM +0530, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

This doesn't apply against current code, please check and resend.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-17 10:05     ` Mark Brown
@ 2013-06-17 10:34       ` Tushar Behera
  2013-06-17 16:08         ` Mark Brown
  0 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-17 10:34 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, thierry.reding, patches, Liam Girdwood

On 06/17/2013 03:35 PM, Mark Brown wrote:
> On Mon, Jun 17, 2013 at 02:42:25PM +0530, Tushar Behera wrote:
>> On 06/10/2013 05:05 PM, Tushar Behera wrote:
>>> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>>> introduced devm_ioremap_resource() and deprecated the use of
>>> devm_request_and_ioremap().
> 
>> Ping.
> 
> Don't send contentless pings.  I seem to recall you already got some
> review on this.
> 

The comment was on removal of the error message during
devm_ioremap_resource() error check . Since there are a few other error
messages in the driver (related to devm_ioremap_nocache) in the same
format, I prefer to leave this error message right now.

There were no other comments.

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH V3 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-17 10:20     ` Mark Brown
@ 2013-06-17 10:40       ` Tushar Behera
  2013-06-17 16:20           ` Mark Brown
  0 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-17 10:40 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, patches, sachin.kamat, alsa-devel, Liam Girdwood,
	Mark Brown

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

devm_request_mem_region is called in devm_ioremap_resource(). Hence that
part can also be removed.

Since devm_ioremap_resource prints error message on failure, there is
no need to print an explicit warning message.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: alsa-devel@alsa-project.org
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Mark Brown <broonie@kernel.org>
---
Changes for V3:
* Rebased on for-next branch of sound/soc git tree
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

Changes for V2:
* Removed redundant print of error message from devm_ioremap_resource
exit path
* Call to devm_request_mem_region is removed.

 sound/soc/spear/spdif_out.c |   19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c
index a4a8748..2fdf68c 100644
--- a/sound/soc/spear/spdif_out.c
+++ b/sound/soc/spear/spdif_out.c
@@ -282,27 +282,16 @@ static int spdif_out_probe(struct platform_device *pdev)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!res)
-		return -EINVAL;
-
-	if (!devm_request_mem_region(&pdev->dev, res->start,
-				resource_size(res), pdev->name)) {
-		dev_warn(&pdev->dev, "Failed to get memory resourse\n");
-		return -ENOENT;
-	}
-
 	host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
 	if (!host) {
 		dev_warn(&pdev->dev, "kzalloc fail\n");
 		return -ENOMEM;
 	}
 
-	host->io_base = devm_request_and_ioremap(&pdev->dev, res);
-	if (!host->io_base) {
-		dev_warn(&pdev->dev, "ioremap failed\n");
-		return -ENOMEM;
-	}
+	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	host->io_base = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(host->io_base))
+		return PTR_ERR(host->io_base);
 
 	host->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(host->clk))
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-17 10:34       ` Tushar Behera
@ 2013-06-17 16:08         ` Mark Brown
  2013-06-17 19:45           ` Thierry Reding
  0 siblings, 1 reply; 67+ messages in thread
From: Mark Brown @ 2013-06-17 16:08 UTC (permalink / raw)
  To: Tushar Behera; +Cc: linux-kernel, thierry.reding, patches, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

On Mon, Jun 17, 2013 at 04:04:52PM +0530, Tushar Behera wrote:
> On 06/17/2013 03:35 PM, Mark Brown wrote:
> > On Mon, Jun 17, 2013 at 02:42:25PM +0530, Tushar Behera wrote:

> >> Ping.
i
> > Don't send contentless pings.  I seem to recall you already got some
> > review on this.

> 
> The comment was on removal of the error message during
> devm_ioremap_resource() error check . Since there are a few other error
> messages in the driver (related to devm_ioremap_nocache) in the same
> format, I prefer to leave this error message right now.

So we should say the same thing repeatedly?  That seems silly.  That
seems silly.   It's like the contentless pings issue...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V3 12/15] ASoC: spear: Convert to use devm_ioremap_resource
  2013-06-17 10:40       ` [PATCH V3 " Tushar Behera
@ 2013-06-17 16:20           ` Mark Brown
  0 siblings, 0 replies; 67+ messages in thread
From: Mark Brown @ 2013-06-17 16:20 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, patches, sachin.kamat, alsa-devel,
	Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

On Mon, Jun 17, 2013 at 04:10:57PM +0530, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V3 12/15] ASoC: spear: Convert to use devm_ioremap_resource
@ 2013-06-17 16:20           ` Mark Brown
  0 siblings, 0 replies; 67+ messages in thread
From: Mark Brown @ 2013-06-17 16:20 UTC (permalink / raw)
  To: Tushar Behera
  Cc: alsa-devel, patches, sachin.kamat, Liam Girdwood, linux-kernel,
	thierry.reding


[-- Attachment #1.1: Type: text/plain, Size: 247 bytes --]

On Mon, Jun 17, 2013 at 04:10:57PM +0530, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

Applied, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-17 16:08         ` Mark Brown
@ 2013-06-17 19:45           ` Thierry Reding
  0 siblings, 0 replies; 67+ messages in thread
From: Thierry Reding @ 2013-06-17 19:45 UTC (permalink / raw)
  To: Mark Brown; +Cc: Tushar Behera, linux-kernel, patches, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

On Mon, Jun 17, 2013 at 05:08:53PM +0100, Mark Brown wrote:
> On Mon, Jun 17, 2013 at 04:04:52PM +0530, Tushar Behera wrote:
> > On 06/17/2013 03:35 PM, Mark Brown wrote:
> > > On Mon, Jun 17, 2013 at 02:42:25PM +0530, Tushar Behera wrote:
> 
> > >> Ping.
> i
> > > Don't send contentless pings.  I seem to recall you already got some
> > > review on this.
> 
> > 
> > The comment was on removal of the error message during
> > devm_ioremap_resource() error check . Since there are a few other error
> > messages in the driver (related to devm_ioremap_nocache) in the same
> > format, I prefer to leave this error message right now.
> 
> So we should say the same thing repeatedly?  That seems silly.  That
> seems silly.   It's like the contentless pings issue...

The intention was to make resource usage more consistent with the new
devm_ioremap_resource(). Part of the consistency involved to move all
error messages into the function so that callers shouldn't have to
worry about them anymore.

So I agree with Mark that there's really no use in keeping a second copy
of the error message.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* [PATCH V2 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-10 11:35 ` [PATCH 11/15] regulator: ti-abb: " Tushar Behera
  2013-06-10 12:01   ` Sachin Kamat
  2013-06-17  9:12   ` Tushar Behera
@ 2013-06-18  4:15   ` Tushar Behera
  2013-06-18 11:59     ` Mark Brown
  2 siblings, 1 reply; 67+ messages in thread
From: Tushar Behera @ 2013-06-18  4:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: thierry.reding, sachin.kamat, patches, Mark Brown, Liam Girdwood

Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
introduced devm_ioremap_resource() and deprecated the use of
devm_request_and_ioremap().

While at it, remove the error message as devm_ioremap_resource prints a similar
error message.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: Mark Brown <broonie@kernel.org>
CC: Liam Girdwood <lgirdwood@gmail.com>
---
Changes for V2:
* Removed error messages from devm_ioremap_resource exit path

 drivers/regulator/ti-abb-regulator.c |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c
index 870d209..3753ed0 100644
--- a/drivers/regulator/ti-abb-regulator.c
+++ b/drivers/regulator/ti-abb-regulator.c
@@ -722,10 +722,9 @@ static int ti_abb_probe(struct platform_device *pdev)
 		ret = -ENODEV;
 		goto err;
 	}
-	abb->base = devm_request_and_ioremap(dev, res);
-	if (!abb->base) {
-		dev_err(dev, "Unable to map '%s'\n", pname);
-		ret = -ENOMEM;
+	abb->base = devm_ioremap_resource(dev, res);
+	if (IS_ERR(abb->base)) {
+		ret = PTR_ERR(abb->base);
 		goto err;
 	}
 
@@ -776,10 +775,9 @@ static int ti_abb_probe(struct platform_device *pdev)
 		ret = -ENODEV;
 		goto skip_opt;
 	}
-	abb->ldo_base = devm_request_and_ioremap(dev, res);
-	if (!abb->ldo_base) {
-		dev_err(dev, "Unable to map '%s'\n", pname);
-		ret = -ENOMEM;
+	abb->ldo_base = devm_ioremap_resource(dev, res);
+	if (IS_ERR(abb->ldo_base)) {
+		ret = PTR_ERR(abb->ldo_base);
 		goto err;
 	}
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource
  2013-06-18  4:15   ` [PATCH V2 " Tushar Behera
@ 2013-06-18 11:59     ` Mark Brown
  0 siblings, 0 replies; 67+ messages in thread
From: Mark Brown @ 2013-06-18 11:59 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, thierry.reding, sachin.kamat, patches, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

On Tue, Jun 18, 2013 at 09:45:07AM +0530, Tushar Behera wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().

I've applied this.  In future please do remember that if you're not
sending a patch series you shouldn't mark it as being part of one,
people will only wonder where the rest of the series is and miss things.
You haven't sent me 15 patches, you've sent me a single patch.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource
  2013-06-17  9:19     ` Tushar Behera
@ 2013-06-19  9:14       ` David Miller
  -1 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-19  9:14 UTC (permalink / raw)
  To: tushar.behera
  Cc: linux-kernel, thierry.reding, patches, sachin.kamat, sparclinux

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 17 Jun 2013 14:37:44 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> While at it, also remove the error message as devm_ioremap_resource()
> also prints similar error message.
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

Applied.

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource
@ 2013-06-19  9:14       ` David Miller
  0 siblings, 0 replies; 67+ messages in thread
From: David Miller @ 2013-06-19  9:14 UTC (permalink / raw)
  To: tushar.behera
  Cc: linux-kernel, thierry.reding, patches, sachin.kamat, sparclinux

From: Tushar Behera <tushar.behera@linaro.org>
Date: Mon, 17 Jun 2013 14:37:44 +0530

> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
> 
> While at it, also remove the error message as devm_ioremap_resource()
> also prints similar error message.
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>

Applied.

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 6/6] pci: mvebu: Convert to use devm_ioremap_resource
  2013-06-17  9:16   ` [PATCH V2 6/6] " Tushar Behera
@ 2013-07-23 18:38     ` Bjorn Helgaas
  2013-07-23 20:19       ` Ezequiel Garcia
  2013-08-06 10:39       ` Thomas Petazzoni
  0 siblings, 2 replies; 67+ messages in thread
From: Bjorn Helgaas @ 2013-07-23 18:38 UTC (permalink / raw)
  To: Tushar Behera
  Cc: linux-kernel, Thierry Reding, patches, sachin.kamat, linux-pci,
	Thomas Petazzoni

[+cc Thomas]

On Mon, Jun 17, 2013 at 3:16 AM, Tushar Behera <tushar.behera@linaro.org> wrote:
> Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> introduced devm_ioremap_resource() and deprecated the use of
> devm_request_and_ioremap().
>
> While at it, modify mvebu_pcie_map_registers() to propagate error code.
>
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> CC: linux-pci@vger.kernel.org
> CC: Bjorn Helgaas <bhelgaas@google.com>

Acked-by: Bjorn Helgaas <bhelgaas@google.com>

Thomas has a bunch of mvebu patches in the pipeline, so I assume he
will incorporate this if appropriate.  I don't want to put it in my
tree and cause conflicts with his changes.  Let me know if I should do
something else here.

Bjorn

> ---
> Changes for V2:
> * Return proper error code in mvebu_pcie_map_registers.
>
>  drivers/pci/host/pci-mvebu.c |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
> index 13a633b..8fc2a82 100644
> --- a/drivers/pci/host/pci-mvebu.c
> +++ b/drivers/pci/host/pci-mvebu.c
> @@ -750,9 +750,9 @@ mvebu_pcie_map_registers(struct platform_device *pdev,
>
>         ret = of_address_to_resource(np, 0, &regs);
>         if (ret)
> -               return NULL;
> +               return ERR_PTR(ret);
>
> -       return devm_request_and_ioremap(&pdev->dev, &regs);
> +       return devm_ioremap_resource(&pdev->dev, &regs);
>  }
>
>  static int __init mvebu_pcie_probe(struct platform_device *pdev)
> @@ -842,9 +842,10 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
>                         continue;
>
>                 port->base = mvebu_pcie_map_registers(pdev, child, port);
> -               if (!port->base) {
> +               if (IS_ERR(port->base)) {
>                         dev_err(&pdev->dev, "PCIe%d.%d: cannot map registers\n",
>                                 port->port, port->lane);
> +                       port->base = NULL;
>                         continue;
>                 }
>
> --
> 1.7.9.5
>

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 6/6] pci: mvebu: Convert to use devm_ioremap_resource
  2013-07-23 18:38     ` Bjorn Helgaas
@ 2013-07-23 20:19       ` Ezequiel Garcia
  2013-08-06 10:39       ` Thomas Petazzoni
  1 sibling, 0 replies; 67+ messages in thread
From: Ezequiel Garcia @ 2013-07-23 20:19 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Tushar Behera, linux-kernel, Thierry Reding, patches,
	sachin.kamat, linux-pci, Thomas Petazzoni, Jason Cooper

On Tue, Jul 23, 2013 at 12:38:28PM -0600, Bjorn Helgaas wrote:
> [+cc Thomas]
> 
> On Mon, Jun 17, 2013 at 3:16 AM, Tushar Behera <tushar.behera@linaro.org> wrote:
> > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> > introduced devm_ioremap_resource() and deprecated the use of
> > devm_request_and_ioremap().
> >
> > While at it, modify mvebu_pcie_map_registers() to propagate error code.
> >
> > Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> > CC: linux-pci@vger.kernel.org
> > CC: Bjorn Helgaas <bhelgaas@google.com>
> 
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
> 

Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>A

> Thomas has a bunch of mvebu patches in the pipeline, so I assume he
> will incorporate this if appropriate.  I don't want to put it in my
> tree and cause conflicts with his changes.  Let me know if I should do
> something else here.
> 

We have the MBus DT patches, to say the least.
Not sure if it conflicts with this and how we should handle it in that
case.

Jason, any ideas?
-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 6/6] pci: mvebu: Convert to use devm_ioremap_resource
  2013-07-23 18:38     ` Bjorn Helgaas
  2013-07-23 20:19       ` Ezequiel Garcia
@ 2013-08-06 10:39       ` Thomas Petazzoni
  2013-08-06 18:10         ` Bjorn Helgaas
  1 sibling, 1 reply; 67+ messages in thread
From: Thomas Petazzoni @ 2013-08-06 10:39 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Tushar Behera, linux-kernel, Thierry Reding, patches,
	sachin.kamat, linux-pci, Jason Cooper, Gregory Clément,
	Ezequiel Garcia

Dear Bjorn Helgaas,

[+cc Jason Cooper, Gregory Clement and Ezequiel Garcia]

On Tue, 23 Jul 2013 12:38:28 -0600, Bjorn Helgaas wrote:
> [+cc Thomas]
> 
> On Mon, Jun 17, 2013 at 3:16 AM, Tushar Behera <tushar.behera@linaro.org> wrote:
> > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
> > introduced devm_ioremap_resource() and deprecated the use of
> > devm_request_and_ioremap().
> >
> > While at it, modify mvebu_pcie_map_registers() to propagate error code.
> >
> > Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> > CC: linux-pci@vger.kernel.org
> > CC: Bjorn Helgaas <bhelgaas@google.com>
> 
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
> 
> Thomas has a bunch of mvebu patches in the pipeline, so I assume he
> will incorporate this if appropriate.  I don't want to put it in my
> tree and cause conflicts with his changes.  Let me know if I should do
> something else here.

I don't really have that many pci-mvebu.c patches in the pipeline
actually. The only one I have is to enable MSI support, and it's a
fairly light one that should not conflict too badly with this one.

Therefore, Bjorn, I believe this patch could go through your tree,
either for 3.11 or 3.12 as you prefer.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 67+ messages in thread

* Re: [PATCH V2 6/6] pci: mvebu: Convert to use devm_ioremap_resource
  2013-08-06 10:39       ` Thomas Petazzoni
@ 2013-08-06 18:10         ` Bjorn Helgaas
  0 siblings, 0 replies; 67+ messages in thread
From: Bjorn Helgaas @ 2013-08-06 18:10 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: Tushar Behera, linux-kernel, Thierry Reding, patches,
	sachin.kamat, linux-pci, Jason Cooper, Gregory Clément,
	Ezequiel Garcia

On Tue, Aug 6, 2013 at 4:39 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Bjorn Helgaas,
>
> [+cc Jason Cooper, Gregory Clement and Ezequiel Garcia]
>
> On Tue, 23 Jul 2013 12:38:28 -0600, Bjorn Helgaas wrote:
>> [+cc Thomas]
>>
>> On Mon, Jun 17, 2013 at 3:16 AM, Tushar Behera <tushar.behera@linaro.org> wrote:
>> > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()")
>> > introduced devm_ioremap_resource() and deprecated the use of
>> > devm_request_and_ioremap().
>> >
>> > While at it, modify mvebu_pcie_map_registers() to propagate error code.
>> >
>> > Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
>> > CC: linux-pci@vger.kernel.org
>> > CC: Bjorn Helgaas <bhelgaas@google.com>
>>
>> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
>>
>> Thomas has a bunch of mvebu patches in the pipeline, so I assume he
>> will incorporate this if appropriate.  I don't want to put it in my
>> tree and cause conflicts with his changes.  Let me know if I should do
>> something else here.
>
> I don't really have that many pci-mvebu.c patches in the pipeline
> actually. The only one I have is to enable MSI support, and it's a
> fairly light one that should not conflict too badly with this one.
>
> Therefore, Bjorn, I believe this patch could go through your tree,
> either for 3.11 or 3.12 as you prefer.

Added to pci/misc for v3.12.  Thanks.

Bjorn

^ permalink raw reply	[flat|nested] 67+ messages in thread

end of thread, other threads:[~2013-08-06 18:10 UTC | newest]

Thread overview: 67+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-10 11:34 [PATCH 00/15] Convert to use devm_ioremap_resource Tushar Behera
2013-06-10 11:46 ` Tushar Behera
2013-06-10 11:34 ` [PATCH 01/15] sparc,leon: " Tushar Behera
2013-06-10 11:46   ` Tushar Behera
2013-06-10 12:03   ` Sachin Kamat
2013-06-10 12:15     ` Sachin Kamat
2013-06-11  3:07     ` Tushar Behera
2013-06-11  3:19       ` Tushar Behera
2013-06-17  9:07   ` [PATCH V2 1/15] " Tushar Behera
2013-06-17  9:19     ` Tushar Behera
2013-06-19  9:14     ` David Miller
2013-06-19  9:14       ` David Miller
2013-06-10 11:35 ` [PATCH 02/15] sudmac: " Tushar Behera
2013-06-17  6:11   ` Tushar Behera
2013-06-10 11:35 ` [PATCH 03/15] mmc: mvsdio: " Tushar Behera
2013-06-17  6:12   ` Tushar Behera
2013-06-10 11:35 ` [PATCH 04/15] gpio_msm: " Tushar Behera
2013-06-17  6:13   ` Tushar Behera
2013-06-10 11:35 ` [PATCH 05/15] gpio-sta2x11: " Tushar Behera
2013-06-17  6:13   ` Tushar Behera
2013-06-17  8:54   ` Linus Walleij
2013-06-10 11:35 ` [PATCH 06/15] net: bcm63xx_enet: " Tushar Behera
2013-06-12  9:23   ` David Miller
2013-06-10 11:35 ` [PATCH 07/15] net: fec: " Tushar Behera
2013-06-12  9:23   ` David Miller
2013-06-10 11:35 ` [PATCH 08/15] net: emaclite: " Tushar Behera
2013-06-12  9:23   ` David Miller
2013-06-10 11:35 ` [PATCH 09/15] net: can: " Tushar Behera
2013-06-10 13:09   ` Marc Kleine-Budde
2013-06-11  3:15     ` Tushar Behera
2013-06-12  3:09       ` 'Greg Kroah-Hartman'
2013-06-12  9:23   ` David Miller
2013-06-13  5:30   ` Tushar Behera
2013-06-13  5:41     ` Sachin Kamat
2013-06-10 11:35 ` [PATCH 10/15] Staging: netlogic: " Tushar Behera
2013-06-10 11:35 ` [PATCH 11/15] regulator: ti-abb: " Tushar Behera
2013-06-10 12:01   ` Sachin Kamat
2013-06-11  4:31     ` Tushar Behera
2013-06-17  9:12   ` Tushar Behera
2013-06-17 10:05     ` Mark Brown
2013-06-17 10:34       ` Tushar Behera
2013-06-17 16:08         ` Mark Brown
2013-06-17 19:45           ` Thierry Reding
2013-06-18  4:15   ` [PATCH V2 " Tushar Behera
2013-06-18 11:59     ` Mark Brown
2013-06-10 11:35 ` [PATCH 12/15] ASoC: spear: " Tushar Behera
2013-06-10 12:06   ` Sachin Kamat
2013-06-11  3:51     ` Tushar Behera
2013-06-17  9:13   ` [PATCH V2 " Tushar Behera
2013-06-17 10:20     ` Mark Brown
2013-06-17 10:40       ` [PATCH V3 " Tushar Behera
2013-06-17 16:20         ` Mark Brown
2013-06-17 16:20           ` Mark Brown
2013-06-10 11:35 ` [PATCH 13/15] pci: mvebu: " Tushar Behera
2013-06-10 14:29   ` Sachin Kamat
2013-06-11  4:51     ` Tushar Behera
2013-06-17  9:16   ` [PATCH V2 6/6] " Tushar Behera
2013-07-23 18:38     ` Bjorn Helgaas
2013-07-23 20:19       ` Ezequiel Garcia
2013-08-06 10:39       ` Thomas Petazzoni
2013-08-06 18:10         ` Bjorn Helgaas
2013-06-10 11:35 ` [PATCH 14/15] usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource Tushar Behera
2013-06-10 12:17   ` Sergei Shtylyov
2013-06-11  3:21     ` Tushar Behera
2013-06-10 11:35 ` [PATCH 15/15] lib: devres: Remove deprecated devm_request_and_ioremap Tushar Behera
2013-06-12 12:43   ` Andy Shevchenko
2013-06-12 17:39     ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.