Commit:     ddfbf2afd538b38139267f71a185eb9434465440
Parent:     21d364954f5a2a97b4e378f34a13fbf296aa16ec
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 20:27:04 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 20:41:14 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: Nicolas Boichat <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 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 3215f9c..5456e86 100644
--- 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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to