Skip to content
Commit 8de303ba authored by Neelesh Gupta's avatar Neelesh Gupta Committed by Guenter Roeck
Browse files

hwmon: (ibmpowernv) Use platform 'id_table' to probe the device



The current driver probe() function assumes the sensor device to be
always 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 is present or not.

Signed-off-by: default avatarNeelesh Gupta <neelegup@linux.vnet.ibm.com>
Acked-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 61bb53bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment