diff options
Diffstat (limited to 'drivers/gpu/drm/shmobile/shmob_drm_drv.c')
| -rw-r--r-- | drivers/gpu/drm/shmobile/shmob_drm_drv.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index 8554102a6ead..cb821adfc321 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c @@ -18,6 +18,7 @@  #include <drm/drmP.h>  #include <drm/drm_crtc_helper.h>  #include <drm/drm_gem_cma_helper.h> +#include <drm/drm_probe_helper.h>  #include "shmob_drm_drv.h"  #include "shmob_drm_kms.h" @@ -126,7 +127,7 @@ static irqreturn_t shmob_drm_irq(int irq, void *arg)  DEFINE_DRM_GEM_CMA_FOPS(shmob_drm_fops);  static struct drm_driver shmob_drm_driver = { -	.driver_features	= DRIVER_HAVE_IRQ | DRIVER_GEM | DRIVER_MODESET +	.driver_features	= DRIVER_GEM | DRIVER_MODESET  				| DRIVER_PRIME,  	.irq_handler		= shmob_drm_irq,  	.gem_free_object_unlocked = drm_gem_cma_free_object, @@ -229,8 +230,8 @@ static int shmob_drm_probe(struct platform_device *pdev)  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);  	sdev->mmio = devm_ioremap_resource(&pdev->dev, res); -	if (sdev->mmio == NULL) -		return -ENOMEM; +	if (IS_ERR(sdev->mmio)) +		return PTR_ERR(sdev->mmio);  	ret = shmob_drm_setup_clocks(sdev, pdata->clk_source);  	if (ret < 0) | 
