Commit ddfbf2af authored by Jean Delvare's avatar Jean Delvare Committed by Linus Torvalds

applesmc: Use the address as platform device ID

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: default avatarJean Delvare <khali@linux-fr.org>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 21d36495
...@@ -1190,7 +1190,8 @@ static int __init applesmc_init(void) ...@@ -1190,7 +1190,8 @@ static int __init applesmc_init(void)
if (ret) if (ret)
goto out_region; 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)) { if (IS_ERR(pdev)) {
ret = PTR_ERR(pdev); ret = PTR_ERR(pdev);
goto out_driver; goto out_driver;
......
Markdown is supported
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