Re: [PATCH 3/3] drm/loongson: Add interrupt driver for LS7A

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 06, 2021 at 02:36:31PM +0800, lichenyang wrote:
>  int loongson_crtc_init(struct loongson_device *ldev, int index)
> diff --git a/drivers/gpu/drm/loongson/loongson_drv.c b/drivers/gpu/drm/loongson/loongson_drv.c
> index 252be9e25aff..89450c8c9102 100644
> --- a/drivers/gpu/drm/loongson/loongson_drv.c
> +++ b/drivers/gpu/drm/loongson/loongson_drv.c
> @@ -167,6 +167,10 @@ static int loongson_drm_load(struct drm_device *dev, unsigned long flags)
>  	if (ret)
>  		dev_err(dev->dev, "Fatal error during modeset init: %d\n", ret);
>  
> +	ret = loongson_irq_init(ldev);
> +	if (ret)
> +		dev_err(dev->dev, "Fatal error during irq init: %d\n", ret);

It feel like there should be proper cleanup and error handling on this
path instead of just printing an error and continuing.

> +
>  	drm_kms_helper_poll_init(dev);
>  	drm_mode_config_reset(dev);
>  

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux