diff options
Diffstat (limited to 'drivers/gpu/drm/tiny/gm12u320.c')
| -rw-r--r-- | drivers/gpu/drm/tiny/gm12u320.c | 17 | 
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/gpu/drm/tiny/gm12u320.c b/drivers/gpu/drm/tiny/gm12u320.c index 7441d992a5d7..c5bb683e440c 100644 --- a/drivers/gpu/drm/tiny/gm12u320.c +++ b/drivers/gpu/drm/tiny/gm12u320.c @@ -4,6 +4,7 @@   */  #include <linux/module.h> +#include <linux/pm.h>  #include <linux/usb.h>  #include <drm/drm_atomic_helper.h> @@ -12,7 +13,7 @@  #include <drm/drm_damage_helper.h>  #include <drm/drm_drv.h>  #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev_generic.h>  #include <drm/drm_file.h>  #include <drm/drm_format_helper.h>  #include <drm/drm_fourcc.h> @@ -718,15 +719,15 @@ static void gm12u320_usb_disconnect(struct usb_interface *interface)  	drm_atomic_helper_shutdown(dev);  } -static __maybe_unused int gm12u320_suspend(struct usb_interface *interface, -					   pm_message_t message) +static int gm12u320_suspend(struct usb_interface *interface, +			    pm_message_t message)  {  	struct drm_device *dev = usb_get_intfdata(interface);  	return drm_mode_config_helper_suspend(dev);  } -static __maybe_unused int gm12u320_resume(struct usb_interface *interface) +static int gm12u320_resume(struct usb_interface *interface)  {  	struct drm_device *dev = usb_get_intfdata(interface);  	struct gm12u320_device *gm12u320 = to_gm12u320(dev); @@ -747,11 +748,9 @@ static struct usb_driver gm12u320_usb_driver = {  	.probe = gm12u320_usb_probe,  	.disconnect = gm12u320_usb_disconnect,  	.id_table = id_table, -#ifdef CONFIG_PM -	.suspend = gm12u320_suspend, -	.resume = gm12u320_resume, -	.reset_resume = gm12u320_resume, -#endif +	.suspend = pm_ptr(gm12u320_suspend), +	.resume = pm_ptr(gm12u320_resume), +	.reset_resume = pm_ptr(gm12u320_resume),  };  module_usb_driver(gm12u320_usb_driver);  |