Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755606Ab3CTKkC (ORCPT ); Wed, 20 Mar 2013 06:40:02 -0400 Received: from mail-oa0-f54.google.com ([209.85.219.54]:45602 "EHLO mail-oa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518Ab3CTKj7 (ORCPT ); Wed, 20 Mar 2013 06:39:59 -0400 MIME-Version: 1.0 In-Reply-To: <201303201020.14654.arnd@arndb.de> References: <1363266691-15757-1-git-send-email-fabio.porcedda@gmail.com> <201303191759.27762.arnd@arndb.de> <201303201020.14654.arnd@arndb.de> From: Fabio Porcedda Date: Wed, 20 Mar 2013 11:39:38 +0100 Message-ID: Subject: Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe() To: Arnd Bergmann Cc: Geert Uytterhoeven , H Hartley Sweeten , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" , "linux-ide@vger.kernel.org" , "lm-sensors@lm-sensors.org" , "linux-input@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , Greg Kroah-Hartman , Grant Likely Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 789 Lines: 19 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 -- 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/