Commit 29b9415
mtd: st_spi_fsm: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based kernel configuration guards.
Signed-off-by: Raphael Gallais-Pou <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>1 parent bf58219 commit 29b9415
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2104 | 2104 | | |
2105 | 2105 | | |
2106 | 2106 | | |
2107 | | - | |
2108 | 2107 | | |
2109 | 2108 | | |
2110 | 2109 | | |
| |||
2120 | 2119 | | |
2121 | 2120 | | |
2122 | 2121 | | |
2123 | | - | |
2124 | 2122 | | |
2125 | | - | |
| 2123 | + | |
2126 | 2124 | | |
2127 | 2125 | | |
2128 | 2126 | | |
| |||
2136 | 2134 | | |
2137 | 2135 | | |
2138 | 2136 | | |
2139 | | - | |
| 2137 | + | |
2140 | 2138 | | |
2141 | 2139 | | |
2142 | 2140 | | |
| |||
0 commit comments