From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Porcedda Date: Wed, 20 Mar 2013 10:39:38 +0000 Subject: Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe() Message-Id: List-Id: References: <1363266691-15757-1-git-send-email-fabio.porcedda@gmail.com> <201303191759.27762.arnd@arndb.de> <201303201020.14654.arnd@arndb.de> In-Reply-To: <201303201020.14654.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org On Wed, Mar 20, 2013 at 11:20 AM, Arnd Bergmann wrote: > On Wednesday 20 March 2013, Fabio Porcedda wrote: >> I think we can check inside the deferred_probe_work_func() >> if the dev->probe function pointer is equal to platform_drv_probe_fail(). > > I think it's too late by then, because that would only warn if we try to probe > it again, but when platform_driver_probe() does not succeed immediately, it Maybe you mean "does succeed immediately" ? > unregisters the driver again, so we never get there. -- Fabio Porcedda