pinctrl-xway.c (c95baf12f5077419db01313ab61c2aac007d40cd) pinctrl-xway.c (8a8d6bbe1d3bc7137c777ba06246d7e9c08dde4d)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/pinctrl/pinmux-xway.c
4 * based on linux/drivers/pinctrl/pinmux-pxa910.c
5 *
6 * Copyright (C) 2012 John Crispin <john@phrozen.org>
7 * Copyright (C) 2015 Martin Schiller <mschiller@tdt.de>
8 */

--- 1749 unchanged lines hidden (view full) ---

1758 if (ret) {
1759 dev_err(&pdev->dev, "Failed to register pinctrl driver\n");
1760 return ret;
1761 }
1762
1763 /* register the gpio chip */
1764 xway_chip.parent = &pdev->dev;
1765 xway_chip.owner = THIS_MODULE;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/pinctrl/pinmux-xway.c
4 * based on linux/drivers/pinctrl/pinmux-pxa910.c
5 *
6 * Copyright (C) 2012 John Crispin <john@phrozen.org>
7 * Copyright (C) 2015 Martin Schiller <mschiller@tdt.de>
8 */

--- 1749 unchanged lines hidden (view full) ---

1758 if (ret) {
1759 dev_err(&pdev->dev, "Failed to register pinctrl driver\n");
1760 return ret;
1761 }
1762
1763 /* register the gpio chip */
1764 xway_chip.parent = &pdev->dev;
1765 xway_chip.owner = THIS_MODULE;
1766 xway_chip.of_node = pdev->dev.of_node;
1767 ret = devm_gpiochip_add_data(&pdev->dev, &xway_chip, NULL);
1768 if (ret) {
1769 dev_err(&pdev->dev, "Failed to register gpio chip\n");
1770 return ret;
1771 }
1772
1773 /*
1774 * For DeviceTree-supported systems, the gpio core checks the

--- 33 unchanged lines hidden ---
1766 ret = devm_gpiochip_add_data(&pdev->dev, &xway_chip, NULL);
1767 if (ret) {
1768 dev_err(&pdev->dev, "Failed to register gpio chip\n");
1769 return ret;
1770 }
1771
1772 /*
1773 * For DeviceTree-supported systems, the gpio core checks the

--- 33 unchanged lines hidden ---