[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8A42379416420646B9BFAC9682273B6D01C39939@limkexm3.ad.analog.com>
Date: Tue, 27 May 2008 12:15:29 +0100
From: "Hennerich, Michael" <Michael.Hennerich@...log.com>
To: "Mike Frysinger" <vapier.adi@...il.com>,
"Bryan Wu" <cooloney@...nel.org>, <michael.hennerich@...log.com>
Cc: <akpm@...ux-foundation.org>,
"Linux Kernel List" <linux-kernel@...r.kernel.org>
Subject: RE: + pcmcia-add-support-the-cf-pcmcia-driver-for-blackfin-try-2.patch added to -mm tree
>-----Original Message-----
>From: Mike Frysinger [mailto:vapier.adi@...il.com]
>Sent: Donnerstag, 22. Mai 2008 01:34
>To: Bryan Wu; michael.hennerich@...log.com
>Cc: akpm@...ux-foundation.org; Linux Kernel List
>Subject: Re: +
pcmcia-add-support-the-cf-pcmcia-driver-for-blackfin-try-
>2.patch added to -mm tree
>
>On Tue, May 20, 2008 at 3:51 AM, Bryan Wu <cooloney@...nel.org> wrote:
>> On Tue, May 20, 2008 at 2:08 PM, <akpm@...ux-foundation.org> wrote:
>>> +config BFIN_CFPCMCIA
>>> + tristate "Blackfin CompactFlash PCMCIA Driver"
>>> + depends on PCMCIA && BLACKFIN
>>> + help
>>> + Say Y here to support the CompactFlash PCMCIA driver for
>Blackfin.
>
>please add a common statement that tells you the module name if the
>user builds it as a module.
>
>>> + * author: Michael Hennerich (hennerich@...ckfin.uclinux.org)
>
>shouldnt this be MODULE_AUTHOR() ?
Yes.
>
>>> + u_int irq;
>>> + u_short cd_pfx;
>
>u_int forms are weird ... i'd wonder why we have these variations
>anywhere in the kernel
Beauty is in the eye of the beholder...
>
>>> +static int __init bfin_cf_probe(struct platform_device *pdev)
>
>should be __devinit
>
>>> + cd_pfx = platform_get_irq(pdev, 1); /*Card Detect GPIO
PIN
>*/
>>> + if (cd_pfx > MAX_BLACKFIN_GPIOS)
>>> + return -EINVAL;
>>> +
>>> + if (gpio_request(cd_pfx, "pcmcia: CD")) {
>
>i dont think that MAX_BLACKFIN_GPIOS check is needed. the
>gpio_request() function should already be doing it.
>
>>> + printk(KERN_ERR
>>> + "BF5xx flash: Failed ro request Card Detect
>GPIO_%d\n",
>
>"BF5xx flash" ?
>
>>> + cf = kzalloc(sizeof *cf, GFP_KERNEL);
>>> + if (!cf)
>>> + return -ENOMEM;
>
>we dont call gpio_free() here or in the fail0 case below.
Fixed.
Bryan,
are you going to send a new patch?
-Michael
>-mike
--
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