Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933166Ab0BDUFe (ORCPT ); Thu, 4 Feb 2010 15:05:34 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:48273 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932906Ab0BDUFd (ORCPT ); Thu, 4 Feb 2010 15:05:33 -0500 Date: Thu, 4 Feb 2010 20:05:27 +0000 From: Matthew Garrett To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Greg KH , linux-kernel@vger.kernel.org, Frans Pop , Larry Finger , Len Brown , Helge Deller , Andrew Morton Subject: Re: [PATCH 4/9] x86: move hp-wmi's probe function to .devinit.text Message-ID: <20100204200527.GA23497@srcf.ucam.org> References: <20100203150850.GA28815@kroah.com> <1265313417-5568-4-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1265313417-5568-4-git-send-email-u.kleine-koenig@pengutronix.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 28 On Thu, Feb 04, 2010 at 08:56:52PM +0100, Uwe Kleine-K?nig wrote: > A pointer to hp_wmi_bios_setup 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: Frans Pop > Cc: Larry Finger > Cc: Len Brown > Cc: Helge Deller > Cc: Matthew Garrett > Cc: Andrew Morton Acked-by: Matthew Garrett -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/