Skip to content

Commit 53e3962

Browse files
arndbWolfram Sang
authored andcommitted
i2c: qup: fix building without CONFIG_ACPI
The added Centriq support broke compilation with CONFIG_ACPI disabled: drivers/i2c/busses/i2c-qup.c: In function 'qup_i2c_probe': drivers/i2c/busses/i2c-qup.c:1707:25: error: 'qup_i2c_acpi_match' undeclared (first use in this function); did you mean 'qup_i2c_recv_data'? This fixes it by removing the extraneous #ifdef. All ACPI specific code will be dropped implicitly when that option is disabled, but the compiler first needs to see it. Fixes: 902a91a ("i2c: qup: add probe path for Centriq ACPI devices") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Austin Christ <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 535ba90 commit 53e3962

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/i2c/busses/i2c-qup.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,13 +1657,11 @@ static void qup_i2c_disable_clocks(struct qup_i2c_dev *qup)
16571657
clk_disable_unprepare(qup->pclk);
16581658
}
16591659

1660-
#if IS_ENABLED(CONFIG_ACPI)
16611660
static const struct acpi_device_id qup_i2c_acpi_match[] = {
16621661
{ "QCOM8010"},
16631662
{ },
16641663
};
16651664
MODULE_DEVICE_TABLE(acpi, qup_i2c_acpi_match);
1666-
#endif
16671665

16681666
static int qup_i2c_probe(struct platform_device *pdev)
16691667
{

0 commit comments

Comments
 (0)