Skip to content

Commit

Permalink
applesmc: Use the address as platform device ID
Browse files Browse the repository at this point in the history
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 <khali@linux-fr.org>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed May 9, 2007
1 parent 21d3649 commit ddfbf2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddfbf2a

Please sign in to comment.