From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: [PATCH try #3] Input/Joystick Driver: add support AD7142 joystick driver Date: Mon, 15 Oct 2007 21:35:41 +0200 Message-ID: <20071015213541.25bac062@hyperion.delvare> References: <1192459625.6215.17.camel@roc-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: Dmitry Torokhov Cc: bryan.wu@analog.com, Andrey Panin , Roel Kluin <12o3l@tiscali.nl>, "Ahmed S. Darwish" , linux-input@atrey.karlin.mff.cuni.cz, linux-joystick@atrey.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org, akpm@linux-foundation.org List-Id: linux-input@vger.kernel.org On Mon, 15 Oct 2007 11:48:17 -0400, Dmitry Torokhov wrote: > On 10/15/07, Bryan Wu wrote: > > +static int __init ad7142_init(void) > > +{ > > + return i2c_add_driver(&ad7142_driver); > > +} > > + > > +static void __exit ad7142_exit(void) > > +{ > > + i2c_del_driver(&ad7142_driver); > > + input_unregister_device(ad7142_dev); > > input_unregister_device() should be in ad7142_detach_client? I am not > sure i2c - there seems to be 2 interface styles and you probably need > to use the new one. I am CC-inj Jean on this. The new style is preferred, yes. -- Jean Delvare