Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756139AbZC1Krq (ORCPT ); Sat, 28 Mar 2009 06:47:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752879AbZC1Krg (ORCPT ); Sat, 28 Mar 2009 06:47:36 -0400 Received: from ftp.linux-mips.org ([213.58.128.207]:41541 "EHLO ftp.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbZC1Krf (ORCPT ); Sat, 28 Mar 2009 06:47:35 -0400 Date: Sat, 28 Mar 2009 11:45:22 +0100 From: Ralf Baechle To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-kernel@vger.kernel.org, Andrew Morton , Jeff Garzik , "David S. Miller" , Thomas Bogendoerfer , Finn Thain , Geert Uytterhoeven Subject: Re: [PATCH 22/58] move jazzsonic's probe function to .devinit.text Message-ID: <20090328104522.GB17386@linux-mips.org> References: <20090327232153.GA16348@pengutronix.de> <1238196439-16535-22-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: <1238196439-16535-22-git-send-email-u.kleine-koenig@pengutronix.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1264 Lines: 29 On Sat, Mar 28, 2009 at 12:26:43AM +0100, Uwe Kleine-K?nig wrote: > A pointer to jazz_sonic_probe 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: Ralf Baechle > Cc: Jeff Garzik > Cc: David S. Miller > Cc: Thomas Bogendoerfer > Cc: Finn Thain > Cc: Geert Uytterhoeven > Cc: Andrew Morton Acked-by: Ralf Baechle Ralf -- 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/