Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: ds1343: Use devm_pm_set_wake_irq

Use devm_pm_set_wake_irq, then the 'driver.remove()' could be cleaned up.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250205-rtc-cleanup-v1-3-66165678e089@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Peng Fan and committed by
Alexandre Belloni
5ad218f1 6b296dee

+1 -7
+1 -7
drivers/rtc/rtc-ds1343.c
··· 427 427 "unable to request irq for rtc ds1343\n"); 428 428 } else { 429 429 device_init_wakeup(&spi->dev, true); 430 - dev_pm_set_wake_irq(&spi->dev, spi->irq); 430 + devm_pm_set_wake_irq(&spi->dev, spi->irq); 431 431 } 432 432 } 433 433 434 434 return 0; 435 - } 436 - 437 - static void ds1343_remove(struct spi_device *spi) 438 - { 439 - dev_pm_clear_wake_irq(&spi->dev); 440 435 } 441 436 442 437 #ifdef CONFIG_PM_SLEEP ··· 466 471 .pm = &ds1343_pm, 467 472 }, 468 473 .probe = ds1343_probe, 469 - .remove = ds1343_remove, 470 474 .id_table = ds1343_id, 471 475 }; 472 476