Commit 1da032d
mtd: nand: raw: gpmi: fix clocks when CONFIG_PM=N
commit 1001cc1 upstream.
Commit f04ced6 ("mtd: nand: raw: gpmi: improve power management
handling") moved all clock handling into PM callbacks. With CONFIG_PM
disabled, those callbacks are missing, leaving the driver unusable.
Add clock init/teardown for !CONFIG_PM builds to restore basic operation.
Keeping the driver working without requiring CONFIG_PM is preferred over
adding a Kconfig dependency.
Fixes: f04ced6 ("mtd: nand: raw: gpmi: improve power management handling")
Signed-off-by: Maarten Zanders <maarten@zanders.be>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 1fa0743 commit 1da032d
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
2765 | 2768 | | |
2766 | 2769 | | |
2767 | 2770 | | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2768 | 2776 | | |
2769 | 2777 | | |
2770 | 2778 | | |
| |||
2800 | 2808 | | |
2801 | 2809 | | |
2802 | 2810 | | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
2803 | 2814 | | |
2804 | 2815 | | |
2805 | 2816 | | |
| |||
2846 | 2857 | | |
2847 | 2858 | | |
2848 | 2859 | | |
2849 | | - | |
2850 | | - | |
2851 | | - | |
2852 | 2860 | | |
2853 | 2861 | | |
2854 | 2862 | | |
| |||
0 commit comments