EDAC, fsl_ddr: Fix IRQ dispose warning when module is removed
authorYork Sun <york.sun@nxp.com>
Tue, 9 Aug 2016 21:55:44 +0000 (14:55 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 1 Sep 2016 08:28:02 +0000 (10:28 +0200)
commit55764ed37eec48ad1c1cb6784166055e06dcb9df
treea1dc101485eaa76510d36a070c17d1c664606e85
parent339fdff14c1ed34acc9c3368e01b56f80692cf83
EDAC, fsl_ddr: Fix IRQ dispose warning when module is removed

When compiled as a module, removing it causes kernel warnings
when irq_dispose_mapping() is called. Instead of calling
irq_of_parse_and_map(), use platform_get_irq() to acquire the IRQ
number.

Signed-off-by: York Sun <york.sun@nxp.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: morbidrsa@gmail.com
Cc: oss@buserror.net
Cc: stuart.yoder@nxp.com
Link: http://lkml.kernel.org/r/1470779760-16483-8-git-send-email-york.sun@nxp.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/fsl_ddr_edac.c