]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/gpio/gpio-syscon.c
gpio: syscon: Fix possible NULL ptr usage
[mirror_ubuntu-bionic-kernel.git] / drivers / gpio / gpio-syscon.c
index 537cec7583fcac038865c38c8731182287fcb4b1..cf88a0bfe99eafd443bcf1294f873b1aa1d999f1 100644 (file)
@@ -122,7 +122,7 @@ static int syscon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int val)
                                   BIT(offs % SYSCON_REG_BITS));
        }
 
-       priv->data->set(chip, offset, val);
+       chip->set(chip, offset, val);
 
        return 0;
 }