mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
Fixed the strange compile problems some people had
Reasons varied from typos (_ instead of -) to static declarations that should have been extern. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@646 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5059c482fd
commit
b9831fbfcd
4 files changed
+13
-8
No files matched your search
@@ -185,7 +185,7 @@ static
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
int __init i2c_init_i2c_hydra(void)
|
||||
int __init i2c_init_hydra(void)
|
||||
{
|
||||
if (find_hydra() < 0) {
|
||||
printk("Error while reading PCI configuration\n");
|
||||
@@ -212,7 +212,7 @@ MODULE_DESCRIPTION("i2c for Apple Hydra Mac I/O");
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
return i2c_init_i2c_hydra();
|
||||
return i2c_init_hydra();
|
||||
}
|
||||
|
||||
void cleanup_module(void)
|
||||
|
||||
@@ -216,7 +216,7 @@ static
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
int __init i2c_init_i2c_via(void)
|
||||
int __init i2c_init_via(void)
|
||||
{
|
||||
if (find_via() < 0) {
|
||||
printk("Error while reading PCI configuration\n");
|
||||
@@ -252,7 +252,7 @@ MODULE_DESCRIPTION("i2c for Via vt82c586b southbridge");
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
return i2c_init_i2c_via();
|
||||
return i2c_init_via();
|
||||
}
|
||||
|
||||
void cleanup_module(void)
|
||||
|
||||
@@ -192,7 +192,7 @@ static
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
int __init sensors_gl518_init(void);
|
||||
int __init sensors_gl518sm_init(void);
|
||||
static int __init gl518_cleanup(void);
|
||||
static int gl518_attach_adapter(struct i2c_adapter *adapter);
|
||||
static int gl518_detect(struct i2c_adapter *adapter, int address,
|
||||
@@ -1023,7 +1023,7 @@ void gl518_iterate(struct i2c_client *client, int operation, int ctl_name,
|
||||
}
|
||||
}
|
||||
|
||||
int __init sensors_gl518_init(void)
|
||||
int __init sensors_gl518sm_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
@@ -1062,7 +1062,7 @@ MODULE_DESCRIPTION("GL518SM driver");
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
return sensors_gl518_init();
|
||||
return sensors_gl518sm_init();
|
||||
}
|
||||
|
||||
int cleanup_module(void)
|
||||
|
||||
+6
-1
@@ -200,7 +200,12 @@ struct lm80_data {
|
||||
};
|
||||
|
||||
|
||||
static int __init sensors_lm80_init(void);
|
||||
#ifdef MODULE
|
||||
static
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
int __init sensors_lm80_init(void);
|
||||
static int __init lm80_cleanup(void);
|
||||
|
||||
static int lm80_attach_adapter(struct i2c_adapter *adapter);
|
||||
|
||||
Reference in new issue
Block a user