hwmon: (pmbus/adm1275) Validate device ID
authorGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 30 Sep 2011 18:53:25 +0000 (11:53 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 5 Jan 2012 16:19:27 +0000 (08:19 -0800)
commit87102808d03948c825c3bdc48316e48f6422fd7e
tree77eeb38fcf21b2df9fb820b0c26a0e57054c1761
parent805a6af8dba5dfdd35ec35dc52ec0122400b2610
hwmon: (pmbus/adm1275) Validate device ID

Since manufacturer and device ID are known, read and validate it.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
[Dan Carpenter <dan.carpenter@oracle.com>: Fixed memory leak]
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/adm1275.c