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: b5b5b320 ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC") Reported-by: Nkernel test robot <lkp@intel.com> Reviewed-by: NLeon Romanovsky <leonro@nvidia.com> Reviewed-by: NVadim Pasternak <vadimp@nvidia.com> Signed-off-by: NKhalil Blaiech <kblaiech@nvidia.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
Showing
想要评论请 注册 或 登录