Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932494Ab0BDVYj (ORCPT ); Thu, 4 Feb 2010 16:24:39 -0500 Received: from lechat.rtp-net.org ([88.191.19.38]:53660 "EHLO lechat.rtp-net.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979Ab0BDVYg (ORCPT ); Thu, 4 Feb 2010 16:24:36 -0500 X-Greylist: delayed 447 seconds by postgrey-1.27 at vger.kernel.org; Thu, 04 Feb 2010 16:24:36 EST From: Arnaud Patard (Rtp) To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Greg KH , linux-kernel@vger.kernel.org, Andrew Morton , Ben Dooks , Dmitry Baryshkov , Eric Miao , Kristoffer Ericson , Liam Girdwood , Paul Sokolovsky , Richard Purdie , Russell King Subject: Re: [PATCH 1/9] platform-drivers: move probe to .devinit.text in arch/arm References: <20100203150850.GA28815@kroah.com> <1265313417-5568-1-git-send-email-u.kleine-koenig@pengutronix.de> Organization: RtpNet Date: Thu, 04 Feb 2010 22:20:26 +0100 In-Reply-To: <1265313417-5568-1-git-send-email-u.kleine-koenig@pengutronix.de> ("Uwe =?utf-8?Q?Kleine-K=C3=B6nig=22's?= message of "Thu\, 4 Feb 2010 20\:56\:49 +0100") Message-ID: <878wb8wvdx.fsf@lechat.rtp-net.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1703 Lines: 38 Uwe Kleine-König writes: > A pointer to a probe callback is passed to the core via > platform_driver_register and so the function must not disappear when the > .init sections are discarded. Otherwise (if also having HOTPLUG=y) > unbinding and binding a device to the driver via sysfs will result in an > oops as does a device being registered late. > > An alternative to this patch is using platform_driver_probe instead of > platform_driver_register plus removing the pointer to the probe function > from the struct platform_driver. > > Signed-off-by: Uwe Kleine-König > Cc: Andrew Morton > Cc: Arnaud Patard > Cc: Ben Dooks > Cc: Dmitry Baryshkov > Cc: Eric Miao > Cc: Kristoffer Ericson > Cc: Liam Girdwood > Cc: Paul Sokolovsky > Cc: Richard Purdie > Cc: Russell King > --- > arch/arm/mach-pxa/corgi_ssp.c | 2 +- > arch/arm/mach-pxa/sharpsl_pm.c | 2 +- > arch/arm/mach-s3c2410/h1940-bluetooth.c | 2 +- > arch/arm/mach-sa1100/jornada720_ssp.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) For the h1940-bluetooth change : Acked-by: Arnaud Patard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/