gpio-tc3589x.c (188933ac139a6f8ab06cad369bd0200af947b00d) gpio-tc3589x.c (1422731dbc14063fc7083cb090108c0d95267361)
1/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License, version 2
5 * Author: Hanumath Prasad <hanumath.prasad@stericsson.com> for ST-Ericsson
6 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
7 */
8

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

255
256 tc3589x_gpio->dev = &pdev->dev;
257 tc3589x_gpio->tc3589x = tc3589x;
258
259 tc3589x_gpio->chip = template_chip;
260 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
261 tc3589x_gpio->chip.dev = &pdev->dev;
262 tc3589x_gpio->chip.base = -1;
1/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License Terms: GNU General Public License, version 2
5 * Author: Hanumath Prasad <hanumath.prasad@stericsson.com> for ST-Ericsson
6 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
7 */
8

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

255
256 tc3589x_gpio->dev = &pdev->dev;
257 tc3589x_gpio->tc3589x = tc3589x;
258
259 tc3589x_gpio->chip = template_chip;
260 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
261 tc3589x_gpio->chip.dev = &pdev->dev;
262 tc3589x_gpio->chip.base = -1;
263
264#ifdef CONFIG_OF_GPIO
265 tc3589x_gpio->chip.of_node = np;
263 tc3589x_gpio->chip.of_node = np;
266#endif
267
268 /* Bring the GPIO module out of reset */
269 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL,
270 TC3589x_RSTCTRL_GPIRST, 0);
271 if (ret < 0)
272 return ret;
273
274 ret = devm_request_threaded_irq(&pdev->dev,

--- 66 unchanged lines hidden ---
264
265 /* Bring the GPIO module out of reset */
266 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL,
267 TC3589x_RSTCTRL_GPIRST, 0);
268 if (ret < 0)
269 return ret;
270
271 ret = devm_request_threaded_irq(&pdev->dev,

--- 66 unchanged lines hidden ---