dmaengine: at_xdmac: use pm_ptr()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 7 Oct 2021 11:12:30 +0000 (14:12 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Oct 2021 06:12:07 +0000 (11:42 +0530)
Use pm_ptr() macro to fill at_xdmac_driver.driver.pm.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20211007111230.2331837-5-claudiu.beznea@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c

index 12371396fcc00d22824d8782b5ca19145857019b..7fb19bd18ac32fdea882963851a715d45b9c7d57 100644 (file)
@@ -2231,7 +2231,7 @@ static struct platform_driver at_xdmac_driver = {
        .driver = {
                .name           = "at_xdmac",
                .of_match_table = of_match_ptr(atmel_xdmac_dt_ids),
-               .pm             = &atmel_xdmac_dev_pm_ops,
+               .pm             = pm_ptr(&atmel_xdmac_dev_pm_ops),
        }
 };