[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110318091250.GT1751@infomag.iguana.be>
Date: Fri, 18 Mar 2011 10:12:50 +0100
From: Wim Van Sebroeck <wim@...ana.be>
To: Julia Lawall <julia@...u.dk>
Cc: Kukjin Kim <kgene.kim@...sung.com>,
'Ben Dooks' <ben-linux@...ff.org>,
kernel-janitors@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] drivers/watchdog/s3c2410_wdt.c: Convert
release_resource to release_region/release_mem_region
Hi Julia,
> Actually, I later realized that one can also use the result of
> request_mem_region in place of res. Even though it is not the same
> structure, it has the same start and end field information, which is the
> only information that is used. But I haven't had a chance to send a patch
> that follows that strategy. So if it is preferred to keep res, then that
> can be done.
If you look at the driver then you will see that it will use wdt_base to control the device:
static void __iomem *wdt_base;
...
res=platform_get_resource(pdev, IORESOURCE_MEM, 0);
...
wdt_base = ioremap(res->start, size);
So the memory resource is only used for:
1) requesting the memory region
2) ioremapping the memory so that we can use the registers.
My opinion: res can go out so that wdt_mem and wdt_irq get similar platform resource info.
Kind regards,
Wim.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists