Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754864AbZD1T1o (ORCPT ); Tue, 28 Apr 2009 15:27:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753083AbZD1T1f (ORCPT ); Tue, 28 Apr 2009 15:27:35 -0400 Received: from 82-117-125-11.tcdsl.calypso.net ([82.117.125.11]:54694 "EHLO smtp.ossman.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753023AbZD1T1e convert rfc822-to-8bit (ORCPT ); Tue, 28 Apr 2009 15:27:34 -0400 Date: Tue, 28 Apr 2009 21:27:14 +0200 From: Pierre Ossman To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: linux-kernel@vger.kernel.org, Grazvydas Ignotas , David Brownell , Tony Lindgren , Russell King , Paul Walmsley , Jarkko Lavinen , Hiroshi DOYU , Kyungmin Park , Carlos Eduardo Aguiar , Andrew Morton Subject: Re: [PATCH] make mmci-omap using platform_driver_probe Message-ID: <20090428212714.3c9bbc3d@mjolnir.ossman.eu> In-Reply-To: <1238694461-29501-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <200903280927.32786.david-b@pacbell.net> <1238694461-29501-1-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; x86_64-redhat-linux-gnu) 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: 1863 Lines: 47 On Thu, 2 Apr 2009 19:47:41 +0200 Uwe Kleine-König wrote: > A pointer to mmc_omap_probe which lives in .init.text is passed to the > core via platform_driver_register and so the kernel might oops if probe > is called after the init code is discarded. > > As requested by David Brownell platform_driver_probe is used instead of > moving the probe function to .devinit.text. This saves some memory, but > might have the downside that a device being registered after the call to > mmc_omap_init but before the init sections are discarded will not be > bound anymore to the driver. > > Signed-off-by: Uwe Kleine-König > Cc: Grazvydas Ignotas > Cc: Pierre Ossman > Cc: David Brownell > Cc: Tony Lindgren > Cc: Russell King > Cc: Paul Walmsley > Cc: Jarkko Lavinen > Cc: Hiroshi DOYU > Cc: Kyungmin Park > Cc: Carlos Eduardo Aguiar > Cc: Andrew Morton > > --- Queued. Rgds -- -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org TigerVNC, core developer http://www.tigervnc.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption. -- 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/