Message ID | 20110308163105.1a6cb533.akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
diff -puN drivers/rtc/Kconfig~rtc-driver-for-pt7c4338-chip-fix drivers/rtc/Kconfig diff -puN drivers/rtc/Makefile~rtc-driver-for-pt7c4338-chip-fix drivers/rtc/Makefile diff -puN drivers/rtc/rtc-pt7c4338.c~rtc-driver-for-pt7c4338-chip-fix drivers/rtc/rtc-pt7c4338.c --- a/drivers/rtc/rtc-pt7c4338.c~rtc-driver-for-pt7c4338-chip-fix +++ a/drivers/rtc/rtc-pt7c4338.c @@ -35,6 +35,7 @@ */ #include <linux/kernel.h> +#include <linux/slab.h> #include <linux/module.h> #include <linux/i2c.h> #include <linux/rtc.h> @@ -153,7 +154,6 @@ static int pt7c4338_probe(struct i2c_cli const struct i2c_device_id *id) { struct pt7c4338 *pt7c4338; - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); int ret; pt7c4338 = kzalloc(sizeof(struct pt7c4338), GFP_KERNEL);