git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
[pandora-kernel.git]
/
drivers
/
media
/
video
/
mxb.c
diff --git
a/drivers/media/video/mxb.c
b/drivers/media/video/mxb.c
index
d04793f
..
8416cef
100644
(file)
--- a/
drivers/media/video/mxb.c
+++ b/
drivers/media/video/mxb.c
@@
-26,6
+26,7
@@
#include <media/saa7146_vv.h>
#include <media/tuner.h>
#include <linux/video_decoder.h>
#include <media/saa7146_vv.h>
#include <media/tuner.h>
#include <linux/video_decoder.h>
+#include <media/v4l2-common.h>
#include "mxb.h"
#include "tea6415c.h"
#include "mxb.h"
#include "tea6415c.h"
@@
-176,12
+177,11
@@
static int mxb_probe(struct saa7146_dev* dev)
return -ENODEV;
}
return -ENODEV;
}
- mxb =
(struct mxb*)km
alloc(sizeof(struct mxb), GFP_KERNEL);
+ mxb =
kz
alloc(sizeof(struct mxb), GFP_KERNEL);
if( NULL == mxb ) {
DEB_D(("not enough kernel memory.\n"));
return -ENOMEM;
}
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,
mxb->i2c_adapter = (struct i2c_adapter) {
.class = I2C_CLASS_TV_ANALOG,