diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-02-06 19:10:52 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-02-06 19:11:02 -0200 |
commit | 5ddf146f70a44ed4133dea4d377b172605a1cfa5 (patch) | |
tree | 058b6f58b5ab756f9fe798983e7c7bbf75450509 /drivers/watchdog/imx2_wdt.c | |
parent | 781ba9d2ed9df07dbb413fb5ee80ef7d353841c9 (diff) | |
parent | a4a03fc7ef89020baca4f19174e6a43767c6d78a (diff) | |
download | blackbird-obmc-linux-5ddf146f70a44ed4133dea4d377b172605a1cfa5.tar.gz blackbird-obmc-linux-5ddf146f70a44ed4133dea4d377b172605a1cfa5.zip |
Merge branch 'perf/urgent' into perf/core
So that we can get the perf bench exec stack fixes and then apply the
remaining fix for the files added after what is in perf/urgent.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers/watchdog/imx2_wdt.c')
-rw-r--r-- | drivers/watchdog/imx2_wdt.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c index b8ef2c6dca7c..c44c3334003a 100644 --- a/drivers/watchdog/imx2_wdt.c +++ b/drivers/watchdog/imx2_wdt.c @@ -247,7 +247,6 @@ static struct miscdevice imx2_wdt_miscdev = { static int __init imx2_wdt_probe(struct platform_device *pdev) { int ret; - int res_size; struct resource *res; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); @@ -256,15 +255,7 @@ static int __init imx2_wdt_probe(struct platform_device *pdev) return -ENODEV; } - res_size = resource_size(res); - if (!devm_request_mem_region(&pdev->dev, res->start, res_size, - res->name)) { - dev_err(&pdev->dev, "can't allocate %d bytes at %d address\n", - res_size, res->start); - return -ENOMEM; - } - - imx2_wdt.base = devm_ioremap_nocache(&pdev->dev, res->start, res_size); + imx2_wdt.base = devm_request_and_ioremap(&pdev->dev, res); if (!imx2_wdt.base) { dev_err(&pdev->dev, "ioremap failed\n"); return -ENOMEM; |