]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/pc87360.c
[PATCH] savagefb: Convert from VGA IO access to MMIO access
[linux-2.6-omap-h63xx.git] / drivers / hwmon / pc87360.c
index cf2a35799c7ce5939744ba91adf5b23a24a9289e..17f745a23d049898ba55dc51dc7499d64fcee606 100644 (file)
@@ -754,9 +754,8 @@ static int pc87360_detect(struct i2c_adapter *adapter)
        const char *name = "pc87360";
        int use_thermistors = 0;
 
-       if (!(data = kmalloc(sizeof(struct pc87360_data), GFP_KERNEL)))
+       if (!(data = kzalloc(sizeof(struct pc87360_data), GFP_KERNEL)))
                return -ENOMEM;
-       memset(data, 0x00, sizeof(struct pc87360_data));
 
        new_client = &data->client;
        i2c_set_clientdata(new_client, data);