mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
35670665d6
commit
0d6fabb82d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue