]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: fix wakeup irq parsing
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 12 Nov 2015 13:42:26 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:28 +0000 (14:28 -0800)
commit37afe551d4f1b234176ff5d38edb12cfef678fe5
tree80f6e131eb8318c2d53ef8cad376be16dba0f179
parent6868ec4d4d0a54e0627dd562cb357e23c69edd43
i2c: fix wakeup irq parsing

commit c18fba23061f16dde128e10d4869ba4e88e0e81a upstream.

This patch fixes obvious copy-past error in wake up irq parsing
code which leads to the fact that dev_pm_set_wake_irq() will
be called with wrong IRQ number when "wakeup" IRQ is not
defined in DT.

Fixes: 3fffd1283927 ("i2c: allow specifying separate wakeup interrupt in device tree")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-core.c