iommu/rockchip: Fix devm_{request,free}_irq parameter
authorSimon Xue <xxm@rock-chips.com>
Fri, 24 Jun 2016 02:13:26 +0000 (10:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 Jun 2016 12:50:08 +0000 (14:50 +0200)
commitfec3b217ff19978650121103d849b5889b04780a
tree701047c9a6444efb815cd7d5a3fd64f69c82b31f
parent4c2e07c6a29e0129e975727b9f57eede813eea85
iommu/rockchip: Fix devm_{request,free}_irq parameter

Even though the IOMMU shares IRQ with its master, the struct device
passed to {request,free}_irq is supposed to represent the device that is
signalling the interrupt. This patch makes the driver use IOMMU device
instead of master's device to make things clear.

Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c