lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 20 Feb 2010 15:54:50 +0100
From:	Jean Delvare <khali@...ux-fr.org>
To:	Luotao Fu <l.fu@...gutronix.de>
Cc:	Vitaly Wool <vitalywool@...il.com>,
	David Brownell <dbrownell@...rs.sourceforge.net>,
	Greg Kroah-Hartman <gregkh@...e.de>, linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org, Luotao Fu <l.fu@...gutronix.de>
Subject: Re: [PATCH] USB: fix I2C API usage in ohci-pnx4008.

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@...gutronix.de>

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

Acked-by: Jean Delvare <khali@...ux-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
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ