diff options
Diffstat (limited to 'drivers/media/video/hexium_orion.c')
-rw-r--r-- | drivers/media/video/hexium_orion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/hexium_orion.c b/drivers/media/video/hexium_orion.c index 42a9414155c3..0b6c2096ec66 100644 --- a/drivers/media/video/hexium_orion.c +++ b/drivers/media/video/hexium_orion.c | |||
@@ -224,12 +224,11 @@ static int hexium_probe(struct saa7146_dev *dev) | |||
224 | return -EFAULT; | 224 | return -EFAULT; |
225 | } | 225 | } |
226 | 226 | ||
227 | hexium = (struct hexium *) kmalloc(sizeof(struct hexium), GFP_KERNEL); | 227 | hexium = kzalloc(sizeof(struct hexium), GFP_KERNEL); |
228 | if (NULL == hexium) { | 228 | if (NULL == hexium) { |
229 | printk("hexium_orion: hexium_probe: not enough kernel memory.\n"); | 229 | printk("hexium_orion: hexium_probe: not enough kernel memory.\n"); |
230 | return -ENOMEM; | 230 | return -ENOMEM; |
231 | } | 231 | } |
232 | memset(hexium, 0x0, sizeof(struct hexium)); | ||
233 | 232 | ||
234 | /* enable i2c-port pins */ | 233 | /* enable i2c-port pins */ |
235 | saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26)); | 234 | saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26)); |