hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpio/gpio-ts5500.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Digital I/O driver for Technologic Systems TS-5500
34 *
....@@ -16,17 +17,12 @@
1617 * TS-5600:
1718 * Documentation: http://wiki.embeddedarm.com/wiki/TS-5600
1819 * 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.
2320 */
2421
2522 #include <linux/bitops.h>
26
-#include <linux/gpio.h>
23
+#include <linux/gpio/driver.h>
2724 #include <linux/io.h>
2825 #include <linux/module.h>
29
-#include <linux/platform_data/gpio-ts5500.h>
3026 #include <linux/platform_device.h>
3127 #include <linux/slab.h>
3228
....@@ -318,7 +314,6 @@
318314 static int ts5500_dio_probe(struct platform_device *pdev)
319315 {
320316 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
321
- struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev);
322317 struct device *dev = &pdev->dev;
323318 const char *name = dev_name(dev);
324319 struct ts5500_priv *priv;
....@@ -349,10 +344,6 @@
349344 priv->gpio_chip.set = ts5500_gpio_set;
350345 priv->gpio_chip.to_irq = ts5500_gpio_to_irq;
351346 priv->gpio_chip.base = -1;
352
- if (pdata) {
353
- priv->gpio_chip.base = pdata->base;
354
- priv->strap = pdata->strap;
355
- }
356347
357348 switch (block) {
358349 case TS5500_DIO1: