Merge tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / i2c / busses / i2c-mxs.c
index a13aead..ff8b12c 100644 (file)
@@ -811,7 +811,7 @@ static int mxs_i2c_probe(struct platform_device *pdev)
        struct resource *res;
        int err, irq;
 
-       i2c = devm_kzalloc(dev, sizeof(struct mxs_i2c_dev), GFP_KERNEL);
+       i2c = devm_kzalloc(dev, sizeof(*i2c), GFP_KERNEL);
        if (!i2c)
                return -ENOMEM;