]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/video/backlight/lp855x_bl.c
treewide: devm_kzalloc() -> devm_kcalloc()
[mirror_ubuntu-jammy-kernel.git] / drivers / video / backlight / lp855x_bl.c
index 939f057836e1981223ee1ab0dbaa62288fe7b976..73612485ed07e4af457b0a46c73ab516f4fea5f5 100644 (file)
@@ -374,7 +374,7 @@ static int lp855x_parse_dt(struct lp855x *lp)
                struct device_node *child;
                int i = 0;
 
-               rom = devm_kzalloc(dev, sizeof(*rom) * rom_length, GFP_KERNEL);
+               rom = devm_kcalloc(dev, rom_length, sizeof(*rom), GFP_KERNEL);
                if (!rom)
                        return -ENOMEM;