summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/tda1004x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/tda1004x.c')
-rw-r--r--drivers/media/dvb-frontends/tda1004x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/tda1004x.c b/drivers/media/dvb-frontends/tda1004x.c
index 6f306db6c615..7eefc8814243 100644
--- a/drivers/media/dvb-frontends/tda1004x.c
+++ b/drivers/media/dvb-frontends/tda1004x.c
@@ -1271,7 +1271,7 @@ struct dvb_frontend* tda10045_attach(const struct tda1004x_config* config,
int id;
/* allocate memory for the internal state */
- state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL);
+ state = kzalloc_obj(struct tda1004x_state);
if (!state) {
printk(KERN_ERR "Can't allocate memory for tda10045 state\n");
return NULL;
@@ -1341,7 +1341,7 @@ struct dvb_frontend* tda10046_attach(const struct tda1004x_config* config,
int id;
/* allocate memory for the internal state */
- state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL);
+ state = kzalloc_obj(struct tda1004x_state);
if (!state) {
printk(KERN_ERR "Can't allocate memory for tda10046 state\n");
return NULL;