UPSTREAM: iommu/rockchip: Don't feed NULL res pointers to devres
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 21 Mar 2016 11:00:23 +0000 (12:00 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 30 Nov 2016 06:10:39 +0000 (14:10 +0800)
commitf5202c54dd1f2f5431e2ca24a53e83cc4210d6c6
treec1b61e99ee23fee5d3cf353a1a7eb4f093071492
parentdc7e96507604173dcea9b29085ead9b97ebe1ce9
UPSTREAM: iommu/rockchip: Don't feed NULL res pointers to devres

If we do, devres prints a "invalid resource" string in the error
loglevel.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
(cherry picked from commit 8d7f2d84ed2d44b05e1ce88fa4b74886af46a139)

Change-Id: I3849bcaa4ceaea3247a8169b2a123a834011fbc5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
drivers/iommu/rockchip-iommu.c