iommu/rockchip: fix devm_request_irq and devm_free_irq parameter
authorSimon <xxm@rock-chips.com>
Fri, 25 Mar 2016 01:57:24 +0000 (09:57 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 25 Mar 2016 03:42:58 +0000 (11:42 +0800)
commit737923cf7d5cb5560d0b2f00c8c4248c70d6d623
tree25680eb5eec55a6dcc82cc311720541a4e758643
parent3ed499f07cf703f05a41293bc861b2cd4e60cff8
iommu/rockchip: fix devm_request_irq and devm_free_irq parameter

When rk_iommu_attach_device or rk_iommu_detach_device be called, the second
parameter "dev" represent the device who own the iommu, so it is not resonable
using "dev" for devm_request_irq's first parameter. To avoid potential error,
we must use iommu device itself "iommu->dev" instead, the same as devm_free_irq.

Change-Id: Id9f4097d6f1b916308475854dcf75ce86d9494fc
Signed-off-by: Simon <xxm@rock-chips.com>
drivers/iommu/rockchip-iommu.c