diff options
| author | Arnd Bergmann <[email protected]> | 2025-03-04 14:27:59 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-03-05 14:46:33 +0000 |
| commit | a4cb9066283dbca2c06089766459568156670566 (patch) | |
| tree | 70275c3c6d1466b6f845904a6e7cb095ddec38ed /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
| parent | pmdomain: rockchip: add regulator support (diff) | |
| download | kernel-a4cb9066283dbca2c06089766459568156670566.tar.gz kernel-a4cb9066283dbca2c06089766459568156670566.zip | |
pmdomain: rockchip: add regulator dependency
When CONFIG_REGULATOR is disabled, this pmdomain driver fails to build:
drivers/pmdomain/rockchip/pm-domains.c:653:30: error: implicit declaration of function 'devm_of_regulator_get'; did you mean 'devm_regulator_get'? [-Wimplicit-function-declaration]
653 | pd->supply = devm_of_regulator_get(pmu->dev, pd->node, "domain");
| ^~~~~~~~~~~~~~~~~~~~~
| devm_regulator_get
drivers/pmdomain/rockchip/pm-domains.c:653:28: error: assignment to 'struct regulator *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
653 | pd->supply = devm_of_regulator_get(pmu->dev, pd->node, "domain");
| ^
Add a Kconfig dependency.
Fixes: db6df2e3fc16 ("pmdomain: rockchip: add regulator support")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Reviewed-by: Dragan Simic <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
0 files changed, 0 insertions, 0 deletions
