iommu/rockchip: fix bool operation error and probe warning
authorZhengShunQian <zhengsq@rock-chips.com>
Sat, 19 Mar 2016 02:32:10 +0000 (10:32 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 22 Mar 2016 03:19:31 +0000 (11:19 +0800)
commite0492807e6b91becccbcab6eca1df27da55d726b
tree04267685de5b9b9d653c252e67b15c724545f163
parent6bd1f0943aa7297e6906237bca240c5d614d2aeb
iommu/rockchip: fix bool operation error and probe warning

Bool type true is exactly BIT(0), so
bool enable = true;
enable &= BIT(2);
enable will be false, which isn't the result we expected in this case.
Change bool type to u32.

The other fix is checking the res in probe() to skip the irq resource.

Change-Id: I2947c9f1e15cb92f03096d26a44759c107bfacd1
Reported-by: Simon <xxm@rock-chips.com>
Suggested-by: Simon <xxm@rock-chips.com>
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
drivers/iommu/rockchip-iommu.c