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

2014-11-04 Thread Neelesh Gupta
On 11/04/2014 07:58 PM, Guenter Roeck wrote: On 11/03/2014 11:30 PM, Neelesh Gupta wrote: 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 pla

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

2014-11-04 Thread Guenter Roeck
On 11/03/2014 11:30 PM, Neelesh Gupta wrote: 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

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

2014-11-03 Thread Neelesh Gupta
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 dev