]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/tegra/drm.c
drm/tegra: Check for NULL pointer instead of IS_ERR()
[karo-tx-linux.git] / drivers / gpu / drm / tegra / drm.c
index a0c18ae79029102d0d8a0ba7a56d876a9c003790..219f314cc162c0bee55ee797ee96aa21fdb6656f 100644 (file)
@@ -36,8 +36,8 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags)
 
        if (iommu_present(&platform_bus_type)) {
                tegra->domain = iommu_domain_alloc(&platform_bus_type);
-               if (IS_ERR(tegra->domain)) {
-                       err = PTR_ERR(tegra->domain);
+               if (!tegra->domain) {
+                       err = -ENOMEM;
                        goto free;
                }