]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: zynq: Setup bank_name to dev->name
authorMichal Simek <michal.simek@xilinx.com>
Thu, 21 Jun 2018 11:58:56 +0000 (13:58 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:55 +0000 (10:49 +0200)
There should be proper bank name setup to distinguish between different
gpio drivers. Use dev->name for it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/zynq_gpio.c

index 26f69b1a713fdd341b3e0eccb824b19a9890407f..f793ee5754a8d13fc93388259475a88c06446872 100644 (file)
@@ -337,6 +337,8 @@ static int zynq_gpio_probe(struct udevice *dev)
        struct zynq_gpio_privdata *priv = dev_get_priv(dev);
        struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
 
+       uc_priv->bank_name = dev->name;
+
        if (priv->p_data)
                uc_priv->gpio_count = priv->p_data->ngpio;