mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
(Frodo) Massive commit of all things related to mkpatch. Let's just say
it works great now. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@516 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
dde88d36d8
commit
acd5a15556
29 files changed
+438
-148
No files matched your search
+10
-4
@@ -34,6 +34,7 @@
|
||||
#include <linux/init.h>
|
||||
#else
|
||||
#define __init
|
||||
#define __initdata
|
||||
#endif
|
||||
|
||||
|
||||
@@ -64,7 +65,12 @@ extern int init_module(void);
|
||||
extern int cleanup_module(void);
|
||||
#endif /* MODULE */
|
||||
|
||||
static int __init matorb_init(void);
|
||||
#ifdef MODULE
|
||||
static
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
int __init sensors_matorb_init(void);
|
||||
static int __init matorb_cleanup(void);
|
||||
static int matorb_attach_adapter(struct i2c_adapter *adapter);
|
||||
static int matorb_detect(struct i2c_adapter *adapter, int address, int kind);
|
||||
@@ -104,7 +110,7 @@ static ctl_table matorb_dir_table_template[] = {
|
||||
};
|
||||
|
||||
/* Used by init/cleanup */
|
||||
static int __init matorb_initialized = 0;
|
||||
static int __initdata matorb_initialized = 0;
|
||||
|
||||
/* I choose here for semi-static MATORB allocation. Complete dynamic
|
||||
allocation could also be used; the code needed for this would probably
|
||||
@@ -324,7 +330,7 @@ int i;
|
||||
}
|
||||
}
|
||||
|
||||
int __init matorb_init(void)
|
||||
int __init sensors_matorb_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
@@ -363,7 +369,7 @@ MODULE_DESCRIPTION("MATORB driver");
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
return matorb_init();
|
||||
return sensors_matorb_init();
|
||||
}
|
||||
|
||||
int cleanup_module(void)
|
||||
|
||||
Reference in new issue
Block a user