projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
applesmc: Use the address as platform device ID
[linux-2.6-block.git]
/
drivers
/
hwmon
/
applesmc.c
diff --git
a/drivers/hwmon/applesmc.c
b/drivers/hwmon/applesmc.c
index 3215f9c87f329dcbcf1a79469eff01551ede9019..5456e86088921306370218c7cbdd1449d060934a 100644
(file)
--- a/
drivers/hwmon/applesmc.c
+++ b/
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;