]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
macintosh: via-pmu-led: requires ATA to be set
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 23 Feb 2023 01:42:41 +0000 (17:42 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Mar 2023 12:36:34 +0000 (23:36 +1100)
commit05dce4ba125336875cd3eed3c1503fa81cd2f691
treed8b6281e45088d2aba9d1c88af617d2cb2653536
parent55d8bd02cc1b9f1063993b5c42c9cabf4af67dea
macintosh: via-pmu-led: requires ATA to be set

LEDS_TRIGGER_DISK depends on ATA, so selecting LEDS_TRIGGER_DISK
when ATA is not set/enabled causes a Kconfig warning:

WARNING: unmet direct dependencies detected for LEDS_TRIGGER_DISK
  Depends on [n]: NEW_LEDS [=y] && LEDS_TRIGGERS [=y] && ATA [=n]
  Selected by [y]:
  - ADB_PMU_LED_DISK [=y] && MACINTOSH_DRIVERS [=y] && ADB_PMU_LED [=y] && LEDS_CLASS [=y]

Fix this by making ADB_PMU_LED_DISK depend on ATA.

Seen on both PPC32 and PPC64.

Fixes: 0e865a80c135 ("macintosh: Remove dependency on IDE_GD_ATA if ADB_PMU_LED_DISK is selected")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230223014241.20878-1-rdunlap@infradead.org
drivers/macintosh/Kconfig