From: David Brownell <david-b@pacbell.net>
To: "Gadiyar, Anand" <gadiyar@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>, linux-omap@vger.kernel.org
Subject: Re: [PATCH 01/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-core.c
Date: Fri, 11 Apr 2008 09:16:39 -0700 [thread overview]
Message-ID: <200804110916.40089.david-b@pacbell.net> (raw)
In-Reply-To: <010C7BAE6783F34D9AC336EE5A01A08805D6500C@dbde01.ent.ti.com>
On Friday 11 April 2008, Gadiyar, Anand wrote:
> > static int __init twl4030_init(void)
> > {
> > - int res;
> > -
> > - if ((res = i2c_add_driver(&twl4030_driver))) {
> > - printk(KERN_ERR "TWL4030: Driver registration failed\n");
> > - return res;
> > - }
> > -
> > - pr_info(KERN_INFO "TWL4030: Driver registration complete.\n");
> > -
> > - return 0;
> > + return i2c_add_driver(&twl4030_driver);
> > }
>
> You're losing the failure print here. Not sure if it matters, but
> I'm pointing it out anyway.
Doesn't matter; the standard policy is to have module init
just add the drivers and let the subsystems handle any
(unlikely) warning messages.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-04-11 16:16 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 8:28 [PATCH 00/23] General checkpatch.pl cleanup for twl and musb drivers Felipe Balbi
2008-04-11 8:28 ` [PATCH 01/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-core.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 02/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-usb.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 03/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-gpio.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 04/23] I2C: TWL4030: checkpatch.pl fixes to tlw4030.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 05/23] I2C: TLW4030: checkpatch.pl fixes to tlw4030-rtc.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 06/23] I2C: TWL4030: checkpatch.pl fixes to rtc-twl4030.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 07/23] USB: MUSB: checkpatch.pl fixes to cppi_dma.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 08/23] USB: MUSB: checkpatch.pl fixes to davinci.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 09/23] USB: MUSB: checkpatch.pl fixed to musb_core.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 10/23] USB: MUSB: checkpatch.pl fixes to musb_gadget.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 11/23] USB: MUSB: checkpatch.pl fixed to musb_gadget_ep0.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 12/23] USB: MUSB: checkpatch.pl fixed to musb_host.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 13/23] USB: MUSB: checkpatch.pl fixed to musb_procfs.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 14/23] USB: MUSB: checkpatch.pl fixes to musb_virthub.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 15/23] USB: MUSB: checkpatch.pl fixes to musbhsdma.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 16/23] USB: MUSB: checkpatch.pl fixes to omap2430.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 17/23] USB: MUSB: checkpatch.pl fixes to tusb6010.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 18/23] USB: MUSB: checkpatch.pl fixes to tusb6010_omap.c Felipe Balbi
2008-04-11 8:28 ` [PATCH 19/23] USB: MUSB: checkpatch.pl fixes to davinci.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 20/23] USB: MUSB: checkpatch.pl fixes to musb_core.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 21/23] USB: MUSB: checkpatch.pl fixes to musb_io.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 22/23] USB: MUSB: checkpatch.pl fixed to musb_regs.h Felipe Balbi
2008-04-11 8:28 ` [PATCH 23/23] USB: MUSB: checkpatch.pl fixes to musb_debug.h Felipe Balbi
2008-04-11 9:58 ` [PATCH 15/23] USB: MUSB: checkpatch.pl fixes to musbhsdma.c Felipe Balbi
2008-04-11 9:59 ` Felipe Balbi
2008-04-11 8:53 ` [PATCH 01/23] I2C: TWL4030: checkpatch.pl fixes for twl4030-core.c Gadiyar, Anand
2008-04-11 9:11 ` Felipe Balbi
2008-04-11 16:16 ` David Brownell [this message]
2008-04-11 9:06 ` [PATCH 00/23] General checkpatch.pl cleanup for twl and musb drivers Gadiyar, Anand
2008-04-11 9:11 ` Felipe Balbi
2008-04-11 16:19 ` David Brownell
2008-04-11 19:03 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804110916.40089.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=felipe.balbi@nokia.com \
--cc=gadiyar@ti.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox