The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Luotao Fu <l.fu@pengutronix.de>
Cc: Vitaly Wool <vitalywool@gmail.com>,
	David Brownell <dbrownell@users.sourceforge.net>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Luotao Fu <l.fu@pengutronix.de>
Subject: Re: [PATCH] USB: fix I2C API usage in ohci-pnx4008.
Date: Sat, 20 Feb 2010 15:54:50 +0100	[thread overview]
Message-ID: <20100220155450.32f6c97e@hyperion.delvare> (raw)
In-Reply-To: <1266590520-8607-1-git-send-email-l.fu@pengutronix.de>

On Fri, 19 Feb 2010 15:42:00 +0100, Luotao Fu wrote:
> i2c_board_info doesn't contain a member called name. i2c_register_client call
> does not exist.
> 
> Signed-off-by: Luotao Fu <l.fu@pengutronix.de>

Indeed... my bad. That's what I get for touching code I can't build, I
guess.

Acked-by: Jean Delvare <khali@linux-fr.org>

Note: this patch should also be applied to 2.6.32-stable.

> ---
>  drivers/usb/host/ohci-pnx4008.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/host/ohci-pnx4008.c b/drivers/usb/host/ohci-pnx4008.c
> index 2769326..cd74bbd 100644
> --- a/drivers/usb/host/ohci-pnx4008.c
> +++ b/drivers/usb/host/ohci-pnx4008.c
> @@ -327,7 +327,7 @@ static int __devinit usb_hcd_pnx4008_probe(struct platform_device *pdev)
>  	}
>  	i2c_adap = i2c_get_adapter(2);
>  	memset(&i2c_info, 0, sizeof(struct i2c_board_info));
> -	strlcpy(i2c_info.name, "isp1301_pnx", I2C_NAME_SIZE);
> +	strlcpy(i2c_info.type, "isp1301_pnx", I2C_NAME_SIZE);
>  	isp1301_i2c_client = i2c_new_probed_device(i2c_adap, &i2c_info,
>  						   normal_i2c);
>  	i2c_put_adapter(i2c_adap);
> @@ -411,7 +411,7 @@ out3:
>  out2:
>  	clk_put(usb_clk);
>  out1:
> -	i2c_unregister_client(isp1301_i2c_client);
> +	i2c_unregister_device(isp1301_i2c_client);
>  	isp1301_i2c_client = NULL;
>  out_i2c_driver:
>  	i2c_del_driver(&isp1301_driver);
> @@ -430,7 +430,7 @@ static int usb_hcd_pnx4008_remove(struct platform_device *pdev)
>  	pnx4008_unset_usb_bits();
>  	clk_disable(usb_clk);
>  	clk_put(usb_clk);
> -	i2c_unregister_client(isp1301_i2c_client);
> +	i2c_unregister_device(isp1301_i2c_client);
>  	isp1301_i2c_client = NULL;
>  	i2c_del_driver(&isp1301_driver);
>  


-- 
Jean Delvare

      reply	other threads:[~2010-02-20 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 14:42 [PATCH] USB: fix I2C API usage in ohci-pnx4008 Luotao Fu
2010-02-20 14:54 ` Jean Delvare [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=20100220155450.32f6c97e@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=dbrownell@users.sourceforge.net \
    --cc=gregkh@suse.de \
    --cc=l.fu@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=vitalywool@gmail.com \
    /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