mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
in patched kernel, don't call sensors_init() from sensors.c,
do it from i2c-core in i2c pkg. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1156 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d2f8a04ae3
commit
2e4ce0fe13
2 files changed
+5
-23
No files matched your search
+1
-23
@@ -18,29 +18,10 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/* Not configurable as a module */
|
||||
|
||||
#include <linux/init.h>
|
||||
|
||||
#ifdef MODULE
|
||||
extern int init_module(void);
|
||||
extern int cleanup_module(void);
|
||||
#endif /* MODULE */
|
||||
|
||||
#ifdef MODULE
|
||||
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cleanup_module(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else /* ndef MODULE */
|
||||
|
||||
#ifdef CONFIG_SENSORS_ADM1021
|
||||
extern int sensors_adm1021_init(void);
|
||||
#endif
|
||||
@@ -104,7 +85,6 @@ extern int sensors_it87_init(void);
|
||||
|
||||
int __init sensors_init_all(void)
|
||||
{
|
||||
sensors_init();
|
||||
#ifdef CONFIG_SENSORS_ADM1021
|
||||
sensors_adm1021_init();
|
||||
#endif
|
||||
@@ -167,5 +147,3 @@ int __init sensors_init_all(void)
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* MODULE */
|
||||
Reference in new issue
Block a user