Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754840AbZC2Hrt (ORCPT ); Sun, 29 Mar 2009 03:47:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751204AbZC2Hrk (ORCPT ); Sun, 29 Mar 2009 03:47:40 -0400 Received: from rhun.apana.org.au ([64.62.148.172]:46355 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750771AbZC2Hrk (ORCPT ); Sun, 29 Mar 2009 03:47:40 -0400 Date: Sun, 29 Mar 2009 15:47:31 +0800 From: Herbert Xu To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-kernel@vger.kernel.org, Andrew Morton , Russell King , David Brownell , Patrick McHardy , Jan Engelhardt , Michael Buesch Subject: Re: [PATCH 34/58] move omap_rng's probe function to .devinit.text Message-ID: <20090329074731.GD11735@gondor.apana.org.au> References: <20090327232153.GA16348@pengutronix.de> <1238196439-16535-34-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-34-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: 1445 Lines: 31 On Sat, Mar 28, 2009 at 12:26:55AM +0100, Uwe Kleine-K?nig wrote: > A pointer to omap_rng_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: Russell King > Cc: David Brownell > Cc: Herbert Xu > Cc: Patrick McHardy > Cc: Jan Engelhardt > Cc: Michael Buesch > Cc: Andrew Morton Applied to cryptodev. Thanks! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/