|
@@ -23,7 +23,6 @@
|
|
|
#include <linux/gpio/driver.h>
|
|
|
#include <linux/io.h>
|
|
|
#include <linux/module.h>
|
|
|
-#include <linux/platform_data/gpio-ts5500.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/slab.h>
|
|
|
|
|
@@ -315,7 +314,6 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
|
|
|
static int ts5500_dio_probe(struct platform_device *pdev)
|
|
|
{
|
|
|
enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
|
|
|
- struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
|
|
struct device *dev = &pdev->dev;
|
|
|
const char *name = dev_name(dev);
|
|
|
struct ts5500_priv *priv;
|
|
@@ -346,10 +344,6 @@ static int ts5500_dio_probe(struct platform_device *pdev)
|
|
|
priv->gpio_chip.set = ts5500_gpio_set;
|
|
|
priv->gpio_chip.to_irq = ts5500_gpio_to_irq;
|
|
|
priv->gpio_chip.base = -1;
|
|
|
- if (pdata) {
|
|
|
- priv->gpio_chip.base = pdata->base;
|
|
|
- priv->strap = pdata->strap;
|
|
|
- }
|
|
|
|
|
|
switch (block) {
|
|
|
case TS5500_DIO1:
|