Repository navigation
Commit ffd228f
lirc_rpi: Don't register with lirc_dev if we can't claim gpio pins
Currently the lirc_rpi module always registers a new lirc device.
In case the gpio pins can't be claimed it exits without unregistering.
Skip registering with lirc_dev if pins can't be claimed.
Also, don't free gpio pins that we haven't claimed.1 parent 1dcb5fd commit ffd228f
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | 593 | | |
596 | 594 | | |
597 | 595 | | |
| |||
623 | 621 | | |
624 | 622 | | |
625 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
| |||
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| |||
0 commit comments