@@ -393,5 +393,5 @@ static int it913x_probe(struct platform_device *pdev)
const struct platform_device_id *id = platform_get_device_id(pdev);
char *chip_ver_str;
- dev = kzalloc(sizeof(struct it913x_dev), GFP_KERNEL);
+ dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (!dev)
@@ -404,8 +404,7 @@ static int it913x_probe(struct platform_device *pdev)
dev->role = pdata->role;
fe->tuner_priv = dev;
- memcpy(&fe->ops.tuner_ops, &it913x_tuner_ops,
- sizeof(struct dvb_tuner_ops));
+ memcpy(&fe->ops.tuner_ops, &it913x_tuner_ops, sizeof(it913x_tuner_ops));
platform_set_drvdata(pdev, dev);
if (dev->chip_ver == 1)
@@ -427,8 +426,7 @@ static int it913x_remove(struct platform_device *pdev)
struct dvb_frontend *fe = dev->fe;
dev_dbg(&pdev->dev, "\n");
-
- memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops));
+ memset(&fe->ops.tuner_ops, 0, sizeof(it913x_tuner_ops));
fe->tuner_priv = NULL;
kfree(dev);