From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH] i2c-pxa: fix unbinding/rebinding of the device Date: Sat, 8 Jan 2011 17:18:28 +0100 Message-ID: <20110108161828.GC8237@pengutronix.de> References: <20110106124028.GX25121@pengutronix.de> <1294502804-6580-1-git-send-email-dbaryshkov@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1294502804-6580-1-git-send-email-dbaryshkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dmitry Eremin-Solenikov Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Eric Miao , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ben Dooks List-Id: linux-i2c@vger.kernel.org On Sat, Jan 08, 2011 at 07:06:44PM +0300, Dmitry Eremin-Solenikov wrote= : > When a "pxa2xx-i2c" device was unbound (e.g. via sysfs) the remove > callback was not called because it was discarded when linking the > kernel. Because of that the resources allocated in probe were not > freed and so a clean unbind/rebind was impossible. >=20 > Fix that by moving the remove callback to .devexit.text. >=20 > Signed-off-by: Dmitry Eremin-Solenikov Acked-by: Uwe Kleine-K=F6nig Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig = | Industrial Linux Solutions | http://www.pengutronix.de/= |