iommu/mediatek: Check for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Mar 2016 10:10:27 +0000 (13:10 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 2 Mar 2016 14:49:21 +0000 (15:49 +0100)
commit3189e4905c2d08d6618d79af2c486f530bbfb3b4
treeacf8cca54769ccff453bbce6494b07520b9fecf6
parent0b6c0ad3cfe6bc914af3ae595c9729e38f11a024
iommu/mediatek: Check for NULL instead of IS_ERR()

of_platform_device_create() returns NULL on error, it never returns
error pointers.

Fixes: 0df4fabe208d ('iommu/mediatek: Add mt8173 IOMMU driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c