Commit 0a6726e
iio: accel: mma8452: switch to non-devm request_threaded_irq()
Avoid using devm_request_threaded_irq() as the driver requires explicit
error-handling path(s). Using devm_* API together with goto-based
unwinding breaks the expected LIFO resource release model.
Add explicit IRQ cleanup in the driver teardown paths to follow kernel
resource management conventions.
Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>1 parent 5bdff29 commit 0a6726e
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1690 | 1688 | | |
1691 | 1689 | | |
1692 | 1690 | | |
1693 | 1691 | | |
1694 | 1692 | | |
1695 | 1693 | | |
1696 | | - | |
| 1694 | + | |
1697 | 1695 | | |
1698 | 1696 | | |
1699 | 1697 | | |
| |||
1702 | 1700 | | |
1703 | 1701 | | |
1704 | 1702 | | |
1705 | | - | |
| 1703 | + | |
1706 | 1704 | | |
1707 | 1705 | | |
1708 | 1706 | | |
| |||
1713 | 1711 | | |
1714 | 1712 | | |
1715 | 1713 | | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
1716 | 1718 | | |
1717 | 1719 | | |
1718 | 1720 | | |
| |||
1738 | 1740 | | |
1739 | 1741 | | |
1740 | 1742 | | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1741 | 1746 | | |
1742 | 1747 | | |
1743 | 1748 | | |
| |||
0 commit comments