public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <felipe.balbi@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] I2C: i2c subsystem should print error messages
Date: Mon, 21 Apr 2008 11:47:06 -0700	[thread overview]
Message-ID: <20080421184705.GC24257@atomide.com> (raw)
In-Reply-To: <1208435341-14830-1-git-send-email-felipe.balbi@nokia.com>

* Felipe Balbi <felipe.balbi@nokia.com> [080417 05:31]:
> We don't have to print any error message if i2c_add_driver
> fails since i2c subsystem already does it.

Pushing.

Tony


> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
>  drivers/i2c/chips/isp1301_omap.c |   10 +---------
>  drivers/i2c/chips/menelaus.c     |   10 +---------
>  2 files changed, 2 insertions(+), 18 deletions(-)
> 
> diff --git a/drivers/i2c/chips/isp1301_omap.c b/drivers/i2c/chips/isp1301_omap.c
> index 6ebff9c..09f9662 100644
> --- a/drivers/i2c/chips/isp1301_omap.c
> +++ b/drivers/i2c/chips/isp1301_omap.c
> @@ -1606,15 +1606,7 @@ static struct i2c_driver isp1301_driver = {
>  
>  static int __init isp_init(void)
>  {
> -	int	status = -ENODEV;
> -
> -	printk(KERN_INFO "%s: version %s\n", DRIVER_NAME, DRIVER_VERSION);
> -
> -	status = i2c_add_driver(&isp1301_driver);
> -	if (status)
> -		printk(KERN_ERR "%s failed to probe\n", DRIVER_NAME);
> -
> -	return status;
> +	return i2c_add_driver(&isp1301_driver);
>  }
>  module_init(isp_init);
>  
> diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c
> index 1d7482a..d4d1ccc 100644
> --- a/drivers/i2c/chips/menelaus.c
> +++ b/drivers/i2c/chips/menelaus.c
> @@ -1281,15 +1281,7 @@ static struct i2c_driver menelaus_i2c_driver = {
>  
>  static int __init menelaus_init(void)
>  {
> -	int res;
> -
> -	res = i2c_add_driver(&menelaus_i2c_driver);
> -	if (res < 0) {
> -		dev_err(&the_menelaus->client->dev, "driver registration failed\n");
> -		return res;
> -	}
> -
> -	return 0;
> +	return i2c_add_driver(&menelaus_i2c_driver);
>  }
>  
>  static void __exit menelaus_exit(void)
> -- 
> 1.5.5.49.gf43e2
> 
> --
> 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

      reply	other threads:[~2008-04-21 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-17 12:29 [PATCH] I2C: i2c subsystem should print error messages Felipe Balbi
2008-04-21 18:47 ` Tony Lindgren [this message]

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=20080421184705.GC24257@atomide.com \
    --to=tony@atomide.com \
    --cc=felipe.balbi@nokia.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