summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-06-21 13:58:56 +0200
committerMichal Simek <michal.simek@xilinx.com>2018-07-19 10:49:55 +0200
commit0d6fabb82df100d709cef306a7d8c05025d5fa39 (patch)
tree3451e7fbae4cf9193cdd47bbebf269131f18cacb
parent35670665d6b6176566b5701c078d5103c1ec4c86 (diff)
gpio: zynq: Setup bank_name to dev->name
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>
-rw-r--r--drivers/gpio/zynq_gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
index 26f69b1a71..f793ee5754 100644
--- a/drivers/gpio/zynq_gpio.c
+++ b/drivers/gpio/zynq_gpio.c
@@ -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;