Merge tag 'rproc-v5.1' of git://github.com/andersson/remoteproc
[linux-2.6-block.git] / drivers / input / touchscreen / ti_am335x_tsc.c
index 9e8684ab48f4f4eb970267fa1a6c89933ed2be87..83e685557a1972d5d024903781368e43ab4afe25 100644 (file)
@@ -507,10 +507,8 @@ static int titsc_remove(struct platform_device *pdev)
 static int __maybe_unused titsc_suspend(struct device *dev)
 {
        struct titsc *ts_dev = dev_get_drvdata(dev);
-       struct ti_tscadc_dev *tscadc_dev;
        unsigned int idle;
 
-       tscadc_dev = ti_tscadc_dev_get(to_platform_device(dev));
        if (device_may_wakeup(dev)) {
                titsc_writel(ts_dev, REG_IRQSTATUS, TSC_IRQENB_MASK);
                idle = titsc_readl(ts_dev, REG_IRQENABLE);
@@ -524,9 +522,7 @@ static int __maybe_unused titsc_suspend(struct device *dev)
 static int __maybe_unused titsc_resume(struct device *dev)
 {
        struct titsc *ts_dev = dev_get_drvdata(dev);
-       struct ti_tscadc_dev *tscadc_dev;
 
-       tscadc_dev = ti_tscadc_dev_get(to_platform_device(dev));
        if (device_may_wakeup(dev)) {
                titsc_writel(ts_dev, REG_IRQWAKEUP,
                                0x00);