MLK-21631 usb: typec: tcpci: Fix build failure
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 12:50:18 +0000 (15:50 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 12:52:23 +0000 (15:52 +0300)
Fix compilation after porting from imx_4.14.y

Fixes: 3aaf2019e9e1 ("MLK-21368 typec: tcpci: disable irq when system suspend")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
drivers/usb/typec/tcpci.c

index 944e61b..65c3e9a 100644 (file)
@@ -841,7 +841,7 @@ static int tcpci_suspend(struct device *dev)
        if (device_may_wakeup(dev))
                enable_irq_wake(chip->tcpci->client->irq);
        else
-               disable_irq(tcpci->client->irq);
+               disable_irq(chip->tcpci->client->irq);
 
        return 0;
 }
@@ -853,7 +853,7 @@ static int tcpci_resume(struct device *dev)
        if (device_may_wakeup(dev))
                disable_irq_wake(chip->tcpci->client->irq);
        else
-               enable_irq(tcpci->client->irq);
+               enable_irq(chip->tcpci->client->irq);
 
        return 0;
 }