Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756873Ab3CNN63 (ORCPT ); Thu, 14 Mar 2013 09:58:29 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:53837 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089Ab3CNN60 (ORCPT ); Thu, 14 Mar 2013 09:58:26 -0400 From: Arnd Bergmann To: Fabio Porcedda Subject: Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe() Date: Thu, 14 Mar 2013 13:58:05 +0000 User-Agent: KMail/1.12.2 (Linux/3.8.0-8-generic; KDE/4.3.2; x86_64; ; ) Cc: 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" , "H Hartley Sweeten" , "Hans-Christian Egtvedt" , Grant Likely References: <1363266691-15757-1-git-send-email-fabio.porcedda@gmail.com> <1363266691-15757-12-git-send-email-fabio.porcedda@gmail.com> In-Reply-To: <1363266691-15757-12-git-send-email-fabio.porcedda@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201303141358.05616.arnd@arndb.de> X-Provags-ID: V02:K0:ia+TMb//7or+/Gxj3TmTnBKbWymqKqM7vKjIGV+zqbW my39Z4V10GWGv3V+WWytq/RyMZdaMM3qXH2GySVg9+UKGSsAER jf+XYKdoOPtlHgAo8z5Kyi+Cfe6Km7UhUfIfEPD0RJvdPVaC4N IvvAUcuyf/F2Ngs7+tf2LnyYKNCxmavWrW+dQuY66dj5k4Gg/o lZBaW+tDPTkKY+HQck4O2YRe3/wSVs71+mYgawxFV/g3647mCx 4bbAkLzFmREFQql8HHeB0T5sfNQVj5x7G4Rtc1A80OK9RX4exe Y9McIjr7GTf/d2ImHhMVMpaCW5V6UaRvYOeZZDmbOWN1LLoi9i te+94cnov5CVlVtaiwYE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 30 On Thursday 14 March 2013, Fabio Porcedda wrote: > This patch converts the drivers to use the > module_platform_driver_probe() macro which makes the code smaller and > a bit simpler. > > Signed-off-by: Fabio Porcedda > Cc: Greg Kroah-Hartman > Cc: Arnd Bergmann > --- > drivers/misc/atmel_pwm.c | 12 +----------- > drivers/misc/ep93xx_pwm.c | 13 +------------ > 2 files changed, 2 insertions(+), 23 deletions(-) The patch itself seems fine, but there are two issues around it: * The PWM drivers should really get moved to drivers/pwm and converted to the new PWM subsystem. I don't know if Hartley or Hans-Christian have plans to do that already. * Regarding the use of module_platform_driver_probe, I'm a little worried about the interactions with deferred probing. I don't think there are any regressions, but we should probably make people aware that one cannot return -EPROBE_DEFER from a platform_driver_probe function. Arnd -- 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/