From d4a0ba8ef40bbdd52be4ad73d7064171aeed155e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 9 May 2007 08:45:33 +0200 Subject: [PATCH] apple_sensors plugin: Fix the `module_register' function. --- src/apple_sensors.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/apple_sensors.c b/src/apple_sensors.c index 848c212a..e13bdc8a 100644 --- a/src/apple_sensors.c +++ b/src/apple_sensors.c @@ -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 */ -- 2.11.0