slimport: anx7808: Remove the redundant codes, irq_set_irq_wake

enable_irq_wake is a wrapper function of irq_set_irq_wake(). So you don't need
to use irq_set_irq_wake().

Change-Id: I68ceeda1468b449ba32de63430e45dad5ebfeb15
This commit is contained in:
Devin Kim 2013-01-21 13:52:56 -08:00 committed by Iliyan Malchev
parent d8896027c6
commit cd5aa714dc

View file

@ -447,13 +447,6 @@ static int anx7808_i2c_probe(struct i2c_client *client,
goto err2;
}
ret = irq_set_irq_wake(client->irq, 1);
if (ret < 0) {
pr_err("%s : Request irq for cable detect"
"interrupt wake set fail\n", __func__);
goto err3;
}
ret = enable_irq_wake(client->irq);
if (ret < 0) {
pr_err("%s : Enable irq for cable detect"