Thread (3 messages) 3 messages, 2 authors, 2014-11-11

Re: [PATCH v2] hwmon: (ibmpowernv) Use platform 'id_table' to probe the device

flat view

From: Guenter Roeck <linux@roeck-us.net>
Date: 2014-11-11 18:38:09
Also in: lkml

On Mon, Nov 10, 2014 at 10:04:57AM +1100, Michael Ellerman wrote:
On Wed, 2014-11-05 at 06:21 -0800, Guenter Roeck wrote:
quoted
On Wed, Nov 05, 2014 at 04:45:14PM +0530, Neelesh Gupta wrote:
quoted
The current driver probe() function assumes the sensor device to be
alwary present and gets executed every time if the driver is loaded,
but the appropriate hardware could not be present.

So, move the platform device creation as part of platform init code
and use the 'id_table' to check if the device present or not.

Signed-off-by: Neelesh Gupta <redacted>
Looks good. We'll need an ack from one of the powerpc maintainers to proceed.
Looks OK to me.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to -next.

Thanks,
Guenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help