[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1351092096-14811-1-git-send-email-paul.gortmaker@windriver.com>
Date: Wed, 24 Oct 2012 11:21:36 -0400
From: Paul Gortmaker <paul.gortmaker@...driver.com>
To: netdev@...r.kernel.org
Cc: Wei Yang <Wei.Yang@...driver.com>,
Claudiu Manoil <claudiu.manoil@...escale.com>,
Timur Tabi <timur@...escale.com>,
Paul Gortmaker <paul.gortmaker@...driver.com>
Subject: [PATCH] gianfar_ptp: use iomem, not ioports resource tree in probe
From: Wei Yang <Wei.Yang@...driver.com>
When using a 36 bit dtb file, the driver complains "resource busy".
Investigating the source of the message leads one to the
gianfar_ptp_probe function.
Since the type of the device resource requested in this function
is IORESOURCE_MEM, it should use "iomem_resource" instead of
"ioports_resource".
Signed-off-by: Wei Yang <Wei.Yang@...driver.com>
Cc: Claudiu Manoil <claudiu.manoil@...escale.com>
Cc: Timur Tabi <timur@...escale.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@...driver.com>
---
drivers/net/ethernet/freescale/gianfar_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index b9db0e0..2e5daee 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -478,7 +478,7 @@ static int gianfar_ptp_probe(struct platform_device *dev)
pr_err("no resource\n");
goto no_resource;
}
- if (request_resource(&ioport_resource, etsects->rsrc)) {
+ if (request_resource(&iomem_resource, etsects->rsrc)) {
pr_err("resource busy\n");
goto no_resource;
}
--
1.7.11.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists