diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-08-01 00:10:03 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-17 03:01:51 +0200 |
commit | cc61f957f486871536cc5531e83337fff4fe48f3 (patch) | |
tree | 266a08e5391fab28627cd1c57642d0328647e46d /drivers/macintosh | |
parent | [POWERPC] Fixes to allow use of Ebony's flash chips through physmap_of (diff) | |
download | linux-cc61f957f486871536cc5531e83337fff4fe48f3.tar.xz linux-cc61f957f486871536cc5531e83337fff4fe48f3.zip |
[POWERPC] drivers/macintosh/therm_adt746x.c: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index f25685b9b7cf..276945d51513 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -379,13 +379,10 @@ static int attach_one_thermostat(struct i2c_adapter *adapter, int addr, if (thermostat) return 0; - th = (struct thermostat *) - kmalloc(sizeof(struct thermostat), GFP_KERNEL); - + th = kzalloc(sizeof(struct thermostat), GFP_KERNEL); if (!th) return -ENOMEM; - memset(th, 0, sizeof(*th)); th->clt.addr = addr; th->clt.adapter = adapter; th->clt.driver = &thermostat_driver; |