projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] sem2mutex: tty
[powerpc.git]
/
drivers
/
hwmon
/
lm92.c
diff --git
a/drivers/hwmon/lm92.c
b/drivers/hwmon/lm92.c
index
647b7c7
..
b0c4cb7
100644
(file)
--- a/
drivers/hwmon/lm92.c
+++ b/
drivers/hwmon/lm92.c
@@
-300,11
+300,10
@@
static int lm92_detect(struct i2c_adapter *adapter, int address, int kind)
| I2C_FUNC_SMBUS_WORD_DATA))
goto exit;
| I2C_FUNC_SMBUS_WORD_DATA))
goto exit;
- if (!(data = k
m
alloc(sizeof(struct lm92_data), GFP_KERNEL))) {
+ if (!(data = k
z
alloc(sizeof(struct lm92_data), GFP_KERNEL))) {
err = -ENOMEM;
goto exit;
}
err = -ENOMEM;
goto exit;
}
- memset(data, 0, sizeof(struct lm92_data));
/* Fill in enough client fields so that we can read from the chip,
which is required for identication */
/* Fill in enough client fields so that we can read from the chip,
which is required for identication */
@@
-411,10
+410,10
@@
static int lm92_detach_client(struct i2c_client *client)
*/
static struct i2c_driver lm92_driver = {
*/
static struct i2c_driver lm92_driver = {
- .owner = THIS_MODULE,
- .name = "lm92",
+ .driver = {
+ .name = "lm92",
+ },
.id = I2C_DRIVERID_LM92,
.id = I2C_DRIVERID_LM92,
- .flags = I2C_DF_NOTIFY,
.attach_adapter = lm92_attach_adapter,
.detach_client = lm92_detach_client,
};
.attach_adapter = lm92_attach_adapter,
.detach_client = lm92_detach_client,
};