Commit ed01ddc
i2c: mlxbf: Add CONFIG_ACPI to guard ACPI function call
The build fails with "implicit declaration of function
'acpi_device_uid'" error. Thus, protect ACPI function calls
from being called when CONFIG_ACPI is disabled.
Fixes: b5b5b32 ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Khalil Blaiech <kblaiech@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent a49cc1f commit ed01ddc
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2264 | 2264 | | |
2265 | 2265 | | |
2266 | 2266 | | |
| 2267 | + | |
2267 | 2268 | | |
2268 | 2269 | | |
2269 | 2270 | | |
| |||
2305 | 2306 | | |
2306 | 2307 | | |
2307 | 2308 | | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2308 | 2315 | | |
2309 | 2316 | | |
2310 | 2317 | | |
| |||
2473 | 2480 | | |
2474 | 2481 | | |
2475 | 2482 | | |
| 2483 | + | |
2476 | 2484 | | |
| 2485 | + | |
2477 | 2486 | | |
2478 | 2487 | | |
2479 | 2488 | | |
| |||
0 commit comments