i2c: core: Tidy up handling of init_irq
Only set init_irq during i2c_device_new and only handle client->irq on the probe/remove paths. Suggested-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com> Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NCharles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
Showing
想要评论请 注册 或 登录