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]>
---
 drivers/hwmon/applesmc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.21-git.orig/drivers/hwmon/applesmc.c      2007-05-07 
14:20:42.000000000 +0200
+++ linux-2.6.21-git/drivers/hwmon/applesmc.c   2007-05-07 14:23:12.000000000 
+0200
@@ -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;


-- 
Jean Delvare

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mactel-linux-devel mailing list
Mactel-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel

Reply via email to