.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Digital I/O driver for Technologic Systems TS-5500 |
---|
3 | 4 | * |
---|
.. | .. |
---|
16 | 17 | * TS-5600: |
---|
17 | 18 | * Documentation: http://wiki.embeddedarm.com/wiki/TS-5600 |
---|
18 | 19 | * Blocks: LCD port (identical to TS-5500 LCD). |
---|
19 | | - * |
---|
20 | | - * This program is free software; you can redistribute it and/or modify |
---|
21 | | - * it under the terms of the GNU General Public License version 2 as |
---|
22 | | - * published by the Free Software Foundation. |
---|
23 | 20 | */ |
---|
24 | 21 | |
---|
25 | 22 | #include <linux/bitops.h> |
---|
26 | | -#include <linux/gpio.h> |
---|
| 23 | +#include <linux/gpio/driver.h> |
---|
27 | 24 | #include <linux/io.h> |
---|
28 | 25 | #include <linux/module.h> |
---|
29 | | -#include <linux/platform_data/gpio-ts5500.h> |
---|
30 | 26 | #include <linux/platform_device.h> |
---|
31 | 27 | #include <linux/slab.h> |
---|
32 | 28 | |
---|
.. | .. |
---|
318 | 314 | static int ts5500_dio_probe(struct platform_device *pdev) |
---|
319 | 315 | { |
---|
320 | 316 | enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data; |
---|
321 | | - struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev); |
---|
322 | 317 | struct device *dev = &pdev->dev; |
---|
323 | 318 | const char *name = dev_name(dev); |
---|
324 | 319 | struct ts5500_priv *priv; |
---|
.. | .. |
---|
349 | 344 | priv->gpio_chip.set = ts5500_gpio_set; |
---|
350 | 345 | priv->gpio_chip.to_irq = ts5500_gpio_to_irq; |
---|
351 | 346 | priv->gpio_chip.base = -1; |
---|
352 | | - if (pdata) { |
---|
353 | | - priv->gpio_chip.base = pdata->base; |
---|
354 | | - priv->strap = pdata->strap; |
---|
355 | | - } |
---|
356 | 347 | |
---|
357 | 348 | switch (block) { |
---|
358 | 349 | case TS5500_DIO1: |
---|