apple_sensors plugin: Fix the `module_register' function.
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Wed, 9 May 2007 06:45:33 +0000 (08:45 +0200)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Wed, 9 May 2007 06:45:33 +0000 (08:45 +0200)
src/apple_sensors.c

index 848c212..e13bdc8 100644 (file)
@@ -245,10 +245,7 @@ static int as_read (void)
 void module_register (void)
 {
 #if IOKIT_HAVE_READ
-       if (load & MR_READ)
-       {
-               plugin_register_init ("apple_sensors", as_init);
-               plugin_register_read ("apple_sensors", as_read);
-       }
+       plugin_register_init ("apple_sensors", as_init);
+       plugin_register_read ("apple_sensors", as_read);
 #endif /* IOKIT_HAVE_READ */
 } /* void module_register */