Merge tag 'phy-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux...
[linux-2.6-microblaze.git] / drivers / power / supply / cw2015_battery.c
index 0c87ad0..728e2a6 100644 (file)
@@ -689,7 +689,7 @@ static int cw_bat_probe(struct i2c_client *client)
        if (ret) {
                /* Allocate an empty battery */
                cw_bat->battery = devm_kzalloc(&client->dev,
-                                              sizeof(cw_bat->battery),
+                                              sizeof(*cw_bat->battery),
                                               GFP_KERNEL);
                if (!cw_bat->battery)
                        return -ENOMEM;