diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-08 23:27:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 23:41:14 -0400 |
commit | ddfbf2afd538b38139267f71a185eb9434465440 (patch) | |
tree | 74aca8f6511ba435f17c13521a0342a2536dcb2c /drivers | |
parent | 21d364954f5a2a97b4e378f34a13fbf296aa16ec (diff) |
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/applesmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index 3215f9c87f32..5456e8608892 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c | |||
@@ -1190,7 +1190,8 @@ static int __init applesmc_init(void) | |||
1190 | if (ret) | 1190 | if (ret) |
1191 | goto out_region; | 1191 | goto out_region; |
1192 | 1192 | ||
1193 | pdev = platform_device_register_simple("applesmc", -1, NULL, 0); | 1193 | pdev = platform_device_register_simple("applesmc", APPLESMC_DATA_PORT, |
1194 | NULL, 0); | ||
1194 | if (IS_ERR(pdev)) { | 1195 | if (IS_ERR(pdev)) { |
1195 | ret = PTR_ERR(pdev); | 1196 | ret = PTR_ERR(pdev); |
1196 | goto out_driver; | 1197 | goto out_driver; |