Commit 94a6c85
scsi: ufs: host: mediatek: Require CONFIG_PM
[ Upstream commit bbb8d98 ]
The added print statement from a recent fix causes the driver to fail
building when CONFIG_PM is disabled:
drivers/ufs/host/ufs-mediatek.c: In function 'ufs_mtk_resume':
drivers/ufs/host/ufs-mediatek.c:1890:40: error: 'struct dev_pm_info' has no member named 'request'
1890 | hba->dev->power.request,
It seems unlikely that the driver can work at all without CONFIG_PM, so
just add a dependency and remove the existing ifdef checks, rather than
adding another ifdef.
Fixes: 15ef3f5 ("scsi: ufs: host: mediatek: Enhance recovery on resume failure")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20260202095052.1232703-1-arnd@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent fdf1188 commit 94a6c85
3 files changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
1856 | 1855 | | |
1857 | 1856 | | |
1858 | 1857 | | |
| |||
1875 | 1874 | | |
1876 | 1875 | | |
1877 | 1876 | | |
1878 | | - | |
1879 | 1877 | | |
1880 | | - | |
1881 | 1878 | | |
1882 | 1879 | | |
1883 | 1880 | | |
| |||
1900 | 1897 | | |
1901 | 1898 | | |
1902 | 1899 | | |
1903 | | - | |
1904 | 1900 | | |
1905 | 1901 | | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
| 1902 | + | |
| 1903 | + | |
1910 | 1904 | | |
1911 | 1905 | | |
1912 | 1906 | | |
| |||
1916 | 1910 | | |
1917 | 1911 | | |
1918 | 1912 | | |
1919 | | - | |
| 1913 | + | |
1920 | 1914 | | |
1921 | 1915 | | |
1922 | 1916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | 1332 | | |
1334 | 1333 | | |
1335 | | - | |
1336 | | - | |
1337 | 1334 | | |
1338 | 1335 | | |
1339 | 1336 | | |
1340 | 1337 | | |
1341 | 1338 | | |
1342 | | - | |
1343 | 1339 | | |
1344 | 1340 | | |
1345 | 1341 | | |
| |||
0 commit comments