]> Git Repo - linux.git/blobdiff - drivers/gpio/gpiolib-devprop.c
drm/nouveau/kms: Don't change EDID when it hasn't actually changed
[linux.git] / drivers / gpio / gpiolib-devprop.c
index 53781b2539867b26fb589d527b9524ad0450e5b4..26741032fa9e329868e35404567fc355c3c190e3 100644 (file)
@@ -37,8 +37,11 @@ void devprop_gpiochip_set_names(struct gpio_chip *chip,
        if (count < 0)
                return;
 
-       if (count > gdev->ngpio)
+       if (count > gdev->ngpio) {
+               dev_warn(&gdev->dev, "gpio-line-names is length %d but should be at most length %d",
+                        count, gdev->ngpio);
                count = gdev->ngpio;
+       }
 
        names = kcalloc(count, sizeof(*names), GFP_KERNEL);
        if (!names)
This page took 0.031908 seconds and 4 git commands to generate.