linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH arm-soc 0/2] remove duplicate check on resource
@ 2014-10-21 10:33 Varka Bhadram
  2014-10-21 10:33 ` [PATCH arm-soc 1/2] mach-omap2: gpmc: " Varka Bhadram
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Varka Bhadram @ 2014-10-21 10:33 UTC (permalink / raw)
  To: linux-arm-kernel

These patches are based on arm-soc/master branch

Varka Bhadram (2):
  mach-omap2: gpmc: remove duplicate check on resource
  plat-omap: dmtimer: remove duplicate check on resource

 arch/arm/mach-omap2/gpmc.c   |    9 +++------
 arch/arm/plat-omap/dmtimer.c |    4 ----
 2 files changed, 3 insertions(+), 10 deletions(-)

-- 
1.7.9.5

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

* [PATCH arm-soc 1/2] mach-omap2: gpmc: remove duplicate check on resource
  2014-10-21 10:33 [PATCH arm-soc 0/2] remove duplicate check on resource Varka Bhadram
@ 2014-10-21 10:33 ` Varka Bhadram
  2014-10-21 10:33 ` [PATCH arm-soc 2/2] plat-omap: dmtimer: " Varka Bhadram
  2014-10-28  4:58 ` [PATCH arm-soc 0/2] " Varka Bhadram
  2 siblings, 0 replies; 4+ messages in thread
From: Varka Bhadram @ 2014-10-21 10:33 UTC (permalink / raw)
  To: linux-arm-kernel

Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 arch/arm/mach-omap2/gpmc.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 9f42d54..ff5c4d6 100644
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -1653,16 +1653,13 @@ static int gpmc_probe(struct platform_device *pdev)
 	struct resource *res;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (res == NULL)
-		return -ENOENT;
-
-	phys_base = res->start;
-	mem_size = resource_size(res);
-
 	gpmc_base = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(gpmc_base))
 		return PTR_ERR(gpmc_base);
 
+	phys_base = res->start;
+	mem_size = resource_size(res);
+
 	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
 	if (res == NULL)
 		dev_warn(&pdev->dev, "Failed to get resource: irq\n");
-- 
1.7.9.5

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

* [PATCH arm-soc 2/2] plat-omap: dmtimer: remove duplicate check on resource
  2014-10-21 10:33 [PATCH arm-soc 0/2] remove duplicate check on resource Varka Bhadram
  2014-10-21 10:33 ` [PATCH arm-soc 1/2] mach-omap2: gpmc: " Varka Bhadram
@ 2014-10-21 10:33 ` Varka Bhadram
  2014-10-28  4:58 ` [PATCH arm-soc 0/2] " Varka Bhadram
  2 siblings, 0 replies; 4+ messages in thread
From: Varka Bhadram @ 2014-10-21 10:33 UTC (permalink / raw)
  To: linux-arm-kernel

Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 arch/arm/plat-omap/dmtimer.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index db10169..bed495a 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -815,10 +815,6 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
 	}
 
 	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (unlikely(!mem)) {
-		dev_err(dev, "%s: no memory resource.\n", __func__);
-		return -ENODEV;
-	}
 
 	timer = devm_kzalloc(dev, sizeof(struct omap_dm_timer), GFP_KERNEL);
 	if (!timer) {
-- 
1.7.9.5

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

* [PATCH arm-soc 0/2] remove duplicate check on resource
  2014-10-21 10:33 [PATCH arm-soc 0/2] remove duplicate check on resource Varka Bhadram
  2014-10-21 10:33 ` [PATCH arm-soc 1/2] mach-omap2: gpmc: " Varka Bhadram
  2014-10-21 10:33 ` [PATCH arm-soc 2/2] plat-omap: dmtimer: " Varka Bhadram
@ 2014-10-28  4:58 ` Varka Bhadram
  2 siblings, 0 replies; 4+ messages in thread
From: Varka Bhadram @ 2014-10-28  4:58 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/21/2014 04:03 PM, Varka Bhadram wrote:
> These patches are based on arm-soc/master branch
>
> Varka Bhadram (2):
>    mach-omap2: gpmc: remove duplicate check on resource
>    plat-omap: dmtimer: remove duplicate check on resource
>
>   arch/arm/mach-omap2/gpmc.c   |    9 +++------
>   arch/arm/plat-omap/dmtimer.c |    4 ----
>   2 files changed, 3 insertions(+), 10 deletions(-)
>
Ping...

-- 
Regards,
Varka Bhadram.

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

end of thread, other threads:[~2014-10-28  4:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 10:33 [PATCH arm-soc 0/2] remove duplicate check on resource Varka Bhadram
2014-10-21 10:33 ` [PATCH arm-soc 1/2] mach-omap2: gpmc: " Varka Bhadram
2014-10-21 10:33 ` [PATCH arm-soc 2/2] plat-omap: dmtimer: " Varka Bhadram
2014-10-28  4:58 ` [PATCH arm-soc 0/2] " Varka Bhadram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).