From: Jean Delvare Let the applesmc device export its address to userspace. libsensors needs this to recognize the device and give it a unique ID. Signed-off-by: Jean Delvare Cc: Nicolas Boichat Signed-off-by: Andrew Morton --- drivers/hwmon/applesmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/hwmon/applesmc.c~applesmc-use-the-address-as-platform-device-id drivers/hwmon/applesmc.c --- a/drivers/hwmon/applesmc.c~applesmc-use-the-address-as-platform-device-id +++ a/drivers/hwmon/applesmc.c @@ -1190,7 +1190,8 @@ static int __init applesmc_init(void) if (ret) goto out_region; - pdev = platform_device_register_simple("applesmc", -1, NULL, 0); + pdev = platform_device_register_simple("applesmc", APPLESMC_DATA_PORT, + NULL, 0); if (IS_ERR(pdev)) { ret = PTR_ERR(pdev); goto out_driver; _