mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
rtc: m48t59: use platform_get_irq_optional
The IRQ is optional, avoid the error message by using platform_get_irq_optional. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
a38fd87484
commit
55cc33fab5
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ static int m48t59_rtc_probe(struct platform_device *pdev)
|
|||
/* Try to get irq number. We also can work in
|
||||
* the mode without IRQ.
|
||||
*/
|
||||
m48t59->irq = platform_get_irq(pdev, 0);
|
||||
m48t59->irq = platform_get_irq_optional(pdev, 0);
|
||||
if (m48t59->irq <= 0)
|
||||
m48t59->irq = NO_IRQ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue