Message ID | e16ba754-078a-097a-7333-076f43718645@users.sourceforge.net |
---|---|
State | Superseded |
Headers | show |
Series | I2C-DaVinci: Adjustments for davinci_i2c_probe() | expand |
diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 71a9c29b3981..1702b1d1b000 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -782,8 +782,7 @@ static int davinci_i2c_probe(struct platform_device *pdev) return irq; } - dev = devm_kzalloc(&pdev->dev, sizeof(struct davinci_i2c_dev), - GFP_KERNEL); + dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); if (!dev) return -ENOMEM;