staging: typec: fusb302: Use client->irq as irq if set
authorHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2017 09:48:08 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:23:12 +0000 (18:23 +0200)
commit4660e4aeb9d74895eb6478932bf5cabeb0db723e
treef065792a0eb572f5364023483513c16bf8635ce8
parent097578ec200858cfa2dd905b08ab8d5576a656e6
staging: typec: fusb302: Use client->irq as irq if set

The fusb302 is also used on x86 systems where the platform code sets
the irq in client->irq and there is no gpio named fcs,int_n.

Cc: "Yueyao (Nathan) Zhu" <yueyao@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/fusb302/fusb302.c