Thread (39 messages) 39 messages, 8 authors, 2013-04-09

Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe()

From: Fabio Porcedda <hidden>
Date: 2013-03-15 18:09:43
Also in: linux-arm-kernel, linux-fbdev, linux-ide, linux-media, lkml

On Fri, Mar 15, 2013 at 12:28 PM, Arnd Bergmann [off-list ref] wrote:
On Friday 15 March 2013, Fabio Porcedda wrote:
quoted
quoted
quoted
* 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.
The use of module_platform_driver_probe() doesn't change anything about that,
it's exactly the same thing as using "return platform_driver_probe()".
I'm right or I'm missing something? Maybe are you just speaking about
the misuse of "platform_driver_probe"?
Yes, that was what I meant. The point is that if we need to review or remove
all uses of platform_driver_probe, it would be better not to introduce a
module_platform_driver_probe() interface to make it easier to use.
Just to let you know, the module_platform_driver_probe() macro is
already in v3.9-rc1 and is already used by some drivers.
In linux-next there are already many patches that use that macro.

Best regards
--
Fabio Porcedda
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help