Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758340AbZAMGVj (ORCPT ); Tue, 13 Jan 2009 01:21:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754877AbZAMGV0 (ORCPT ); Tue, 13 Jan 2009 01:21:26 -0500 Received: from yw-out-2324.google.com ([74.125.46.31]:58362 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752673AbZAMGVZ (ORCPT ); Tue, 13 Jan 2009 01:21:25 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=x2aP20IRm74BiVUMaQdMK1m4ZkSQ61FD8uIrih4rGjgdVbVAWYqxoH0uTJIp+bwoS0 uHvbESz0RbzbIXjEva+5kXLaGtIqgERobsSdFJQnmuecsRWHHmZiy7WA046mndB8fn1t JZ5v5pihxnp7YHhyVj5JsZZEZ1iPRtkq0HsV4= Date: Mon, 12 Jan 2009 22:20:47 -0800 From: Dmitry Torokhov To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] move corgi-ts's probe function to .devinit.text Message-ID: <20090112222031.ZZRA012@mailhub.coreip.homeip.net> References: <1231799107-20136-13-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: <1231799107-20136-13-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: 919 Lines: 22 On Mon, Jan 12, 2009 at 11:24:18PM +0100, Uwe Kleine-K?nig wrote: > A pointer to corgits_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 Applied as well. -- Dmitry -- 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/