Code

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 848c212aa4c06062d42c612d1f4a93cb97917e3e..e13bdc8acd8abd8670b637271e6b4252082b460f 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 */