Commit bbb8d98
scsi: ufs: host: mediatek: Require CONFIG_PM
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>1 parent 9672ed3 commit bbb8d98
3 files changed
Lines changed: 4 additions & 13 deletions
| 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 | |
|---|---|---|---|
| |||
2437 | 2437 | | |
2438 | 2438 | | |
2439 | 2439 | | |
2440 | | - | |
2441 | 2440 | | |
2442 | 2441 | | |
2443 | 2442 | | |
| |||
2484 | 2483 | | |
2485 | 2484 | | |
2486 | 2485 | | |
2487 | | - | |
2488 | 2486 | | |
2489 | | - | |
2490 | 2487 | | |
2491 | 2488 | | |
2492 | 2489 | | |
| |||
2525 | 2522 | | |
2526 | 2523 | | |
2527 | 2524 | | |
2528 | | - | |
2529 | 2525 | | |
2530 | 2526 | | |
2531 | | - | |
2532 | | - | |
2533 | | - | |
2534 | | - | |
| 2527 | + | |
| 2528 | + | |
2535 | 2529 | | |
2536 | 2530 | | |
2537 | 2531 | | |
| |||
2541 | 2535 | | |
2542 | 2536 | | |
2543 | 2537 | | |
2544 | | - | |
| 2538 | + | |
2545 | 2539 | | |
2546 | 2540 | | |
2547 | 2541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | | - | |
1348 | 1347 | | |
1349 | 1348 | | |
1350 | | - | |
1351 | | - | |
1352 | 1349 | | |
1353 | 1350 | | |
1354 | 1351 | | |
1355 | 1352 | | |
1356 | 1353 | | |
1357 | | - | |
1358 | 1354 | | |
1359 | 1355 | | |
1360 | 1356 | | |
| |||
0 commit comments