|
@@ -37,7 +37,7 @@ static int tegra_ion_probe(struct platform_device *pdev)
|
|
sizeof(struct ion_heap *), GFP_KERNEL);
|
|
sizeof(struct ion_heap *), GFP_KERNEL);
|
|
|
|
|
|
idev = ion_device_create(NULL);
|
|
idev = ion_device_create(NULL);
|
|
- if (IS_ERR_OR_NULL(idev))
|
|
|
|
|
|
+ if (IS_ERR(idev))
|
|
return PTR_ERR(idev);
|
|
return PTR_ERR(idev);
|
|
|
|
|
|
/* create the heaps as specified in the board file */
|
|
/* create the heaps as specified in the board file */
|