pinctrl-at91.c (8632987380765dee716d460640aa58d58d52998e) | pinctrl-at91.c (8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * at91 pinctrl driver based on at91 pinmux core 4 * 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 6 */ 7 8#include <linux/clk.h> --- 1854 unchanged lines hidden (view full) --- 1863 if (ret) { 1864 dev_err(&pdev->dev, "failed to prepare and enable clock, ignoring.\n"); 1865 goto clk_enable_err; 1866 } 1867 1868 at91_chip->chip = at91_gpio_template; 1869 1870 chip = &at91_chip->chip; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * at91 pinctrl driver based on at91 pinmux core 4 * 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 6 */ 7 8#include <linux/clk.h> --- 1854 unchanged lines hidden (view full) --- 1863 if (ret) { 1864 dev_err(&pdev->dev, "failed to prepare and enable clock, ignoring.\n"); 1865 goto clk_enable_err; 1866 } 1867 1868 at91_chip->chip = at91_gpio_template; 1869 1870 chip = &at91_chip->chip; |
1871 chip->of_node = np; | |
1872 chip->label = dev_name(&pdev->dev); 1873 chip->parent = &pdev->dev; 1874 chip->owner = THIS_MODULE; 1875 chip->base = alias_idx * MAX_NB_GPIO_PER_BANK; 1876 1877 if (!of_property_read_u32(np, "#gpio-lines", &ngpio)) { 1878 if (ngpio >= MAX_NB_GPIO_PER_BANK) 1879 pr_err("at91_gpio.%d, gpio-nb >= %d failback to %d\n", --- 76 unchanged lines hidden --- | 1871 chip->label = dev_name(&pdev->dev); 1872 chip->parent = &pdev->dev; 1873 chip->owner = THIS_MODULE; 1874 chip->base = alias_idx * MAX_NB_GPIO_PER_BANK; 1875 1876 if (!of_property_read_u32(np, "#gpio-lines", &ngpio)) { 1877 if (ngpio >= MAX_NB_GPIO_PER_BANK) 1878 pr_err("at91_gpio.%d, gpio-nb >= %d failback to %d\n", --- 76 unchanged lines hidden --- |