X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmedia%2Fvideo%2Fmxb.c;h=8416ceff524bf3f5900e5b684cf7e439fc19c4ec;hb=7408187d223f63d46a13b6a35b8f96b032c2f623;hp=d04793fb80fcae21cee6ceb903eb753ec7bf1006;hpb=a2e30e529a48ef4e106e405f91cf4ae525bb01c4;p=pandora-kernel.git diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c index d04793fb80fc..8416ceff524b 100644 --- a/drivers/media/video/mxb.c +++ b/drivers/media/video/mxb.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "mxb.h" #include "tea6415c.h" @@ -176,12 +177,11 @@ static int mxb_probe(struct saa7146_dev* dev) return -ENODEV; } - mxb = (struct mxb*)kmalloc(sizeof(struct mxb), GFP_KERNEL); + mxb = kzalloc(sizeof(struct mxb), GFP_KERNEL); if( NULL == mxb ) { DEB_D(("not enough kernel memory.\n")); return -ENOMEM; } - memset(mxb, 0x0, sizeof(struct mxb)); mxb->i2c_adapter = (struct i2c_adapter) { .class = I2C_CLASS_TV_ANALOG,