Skip to content

Commit c96d6ab

Browse files
Yang YingliangMarc Zyngier
authored andcommitted
irqchip/mbigen: Fix compile warning when CONFIG_ACPI is disabled
Fix the following compile warning: drivers/irqchip/irq-mbigen.c:372:36: warning: ‘mbigen_acpi_match’ defined but not used [-Wunused-const-variable=] static const struct acpi_device_id mbigen_acpi_match[] = { Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4acd8a4 commit c96d6ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/irqchip/irq-mbigen.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ static int mbigen_of_create_domain(struct platform_device *pdev,
273273
}
274274

275275
#ifdef CONFIG_ACPI
276+
static const struct acpi_device_id mbigen_acpi_match[] = {
277+
{ "HISI0152", 0 },
278+
{}
279+
};
280+
MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
281+
276282
static int mbigen_acpi_create_domain(struct platform_device *pdev,
277283
struct mbigen_device *mgn_chip)
278284
{
@@ -369,12 +375,6 @@ static const struct of_device_id mbigen_of_match[] = {
369375
};
370376
MODULE_DEVICE_TABLE(of, mbigen_of_match);
371377

372-
static const struct acpi_device_id mbigen_acpi_match[] = {
373-
{ "HISI0152", 0 },
374-
{}
375-
};
376-
MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);
377-
378378
static struct platform_driver mbigen_platform_driver = {
379379
.driver = {
380380
.name = "Hisilicon MBIGEN-V2",

0 commit comments

Comments
 (0)