Skip to content

Commit 25f0617

Browse files
DhruvaG2000broonie
authored andcommitted
spi: bcm63xx: remove PM_SLEEP based conditional compilation
Get rid of conditional compilation based on CONFIG_PM_SLEEP because it may introduce build issues with certain configs where it maybe disabled This is because if above config is not enabled the suspend-resume functions are never part of the code but the bcm63xx_spi_pm_ops struct still inits them to non-existent suspend-resume functions. Fixes: b42dfed ("spi: add Broadcom BCM63xx SPI controller driver") Signed-off-by: Dhruva Gole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent be3206e commit 25f0617

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/spi/spi-bcm63xx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,6 @@ static void bcm63xx_spi_remove(struct platform_device *pdev)
617617
clk_disable_unprepare(bs->clk);
618618
}
619619

620-
#ifdef CONFIG_PM_SLEEP
621620
static int bcm63xx_spi_suspend(struct device *dev)
622621
{
623622
struct spi_master *master = dev_get_drvdata(dev);
@@ -644,7 +643,6 @@ static int bcm63xx_spi_resume(struct device *dev)
644643

645644
return 0;
646645
}
647-
#endif
648646

649647
static const struct dev_pm_ops bcm63xx_spi_pm_ops = {
650648
SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_spi_suspend, bcm63xx_spi_resume)

0 commit comments

Comments
 (0)