lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bd6d481b-22be-217f-e6f9-95a31575d7af@gmx.de>
Date:   Fri, 30 Jun 2023 10:53:17 +0200
From:   Helge Deller <deller@....de>
To:     Martin Kaiser <martin@...ser.cx>
Cc:     Pengutronix Kernel Team <kernel@...gutronix.de>,
        linux-fbdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fbdev: imxfb: switch to DEFINE_SIMPLE_DEV_PM_OPS

On 6/28/23 15:26, Martin Kaiser wrote:
> SIMPLE_DEV_PM_OPS is deprecated, replace it with DEFINE_SIMPLE_DEV_PM_OPS
> and use pm_sleep_ptr for setting the driver's pm routines. We can now
> remove the __maybe_unused qualifier in the suspend and resume functions.
>
> Signed-off-by: Martin Kaiser <martin@...ser.cx>

both patches applied.

Thanks!
Helge

> ---
>   drivers/video/fbdev/imxfb.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c
> index 5fbcb78a9cae..04f3bf30a529 100644
> --- a/drivers/video/fbdev/imxfb.c
> +++ b/drivers/video/fbdev/imxfb.c
> @@ -1066,7 +1066,7 @@ static void imxfb_remove(struct platform_device *pdev)
>   	framebuffer_release(info);
>   }
>
> -static int __maybe_unused imxfb_suspend(struct device *dev)
> +static int imxfb_suspend(struct device *dev)
>   {
>   	struct fb_info *info = dev_get_drvdata(dev);
>   	struct imxfb_info *fbi = info->par;
> @@ -1076,7 +1076,7 @@ static int __maybe_unused imxfb_suspend(struct device *dev)
>   	return 0;
>   }
>
> -static int __maybe_unused imxfb_resume(struct device *dev)
> +static int imxfb_resume(struct device *dev)
>   {
>   	struct fb_info *info = dev_get_drvdata(dev);
>   	struct imxfb_info *fbi = info->par;
> @@ -1086,13 +1086,13 @@ static int __maybe_unused imxfb_resume(struct device *dev)
>   	return 0;
>   }
>
> -static SIMPLE_DEV_PM_OPS(imxfb_pm_ops, imxfb_suspend, imxfb_resume);
> +static DEFINE_SIMPLE_DEV_PM_OPS(imxfb_pm_ops, imxfb_suspend, imxfb_resume);
>
>   static struct platform_driver imxfb_driver = {
>   	.driver		= {
>   		.name	= DRIVER_NAME,
>   		.of_match_table = imxfb_of_dev_id,
> -		.pm	= &imxfb_pm_ops,
> +		.pm	= pm_sleep_ptr(&imxfb_pm_ops),
>   	},
>   	.probe		= imxfb_probe,
>   	.remove_new	= imxfb_remove,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ