Re: SM501: Fix missing uses of resource_size()

From: Ben Dooks
Date: Tue Nov 10 2009 - 18:12:38 EST


On Tue, Nov 10, 2009 at 01:15:36PM -0500, Andres Salomon wrote:
> On Tue, 10 Nov 2009 17:17:34 +0000
> Ben Dooks <ben@xxxxxxxxxxxx> wrote:
>
> > There are several places in the SM501 fb driver that could do with
> > using resource_size() to calculate the size of a resource.
> >
>
> Yes, please! Also, as Thiago suggested, please submit this inline.

My mailer shows it in line. using quilt mail to send, and it says
that the content has been inlined.

> [...]
> > @@ -1363,7 +1363,7 @@ static int sm501fb_start(struct sm501fb_
> > }
> >
> > info->fbmem_res = request_mem_region(res->start,
> > - (res->end -
> > res->start)+1,
> > + resource_size(res),
> > pdev->name);
> > if (info->fbmem_res == NULL) {
> > dev_err(dev, "cannot claim framebuffer\n");
> > @@ -1377,7 +1377,7 @@ static int sm501fb_start(struct sm501fb_
>
> Looks like you missed one here; the ioremap on line 1374 should also
> use resource_size.

thanks, fixed.

--
Ben (ben@xxxxxxxxx, http://www.fluff.org/)

'a smiley only costs 4 bytes'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/