Re: [PATCH] extcon: axp288: Fix build err without CONFIG_ACPI

2019-04-04 Thread YueHaibing
On 2019/4/4 20:02, Hans de Goede wrote: > Hi, > > On 04-04-19 12:42, Yue Haibing wrote: >> From: YueHaibing >> >> When building CONFIG_ACPI is not set >> gcc warn this: >> >> drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': >> drivers/extcon/extcon-axp288.c:363:20: error: derefe

Re: [PATCH] extcon: axp288: Fix build err without CONFIG_ACPI

2019-04-04 Thread Hans de Goede
Hi, On 04-04-19 12:42, Yue Haibing wrote: From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': drivers/extcon/extcon-axp288.c:363:20: error: dereferencing pointer to incomplete type put_device(&adev->dev)

Re: [PATCH] extcon: axp288: Fix build err without CONFIG_ACPI

2019-04-04 Thread Mukesh Ojha
On 4/4/2019 4:12 PM, Yue Haibing wrote: From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': drivers/extcon/extcon-axp288.c:363:20: error: dereferencing pointer to incomplete type put_device(&adev->dev);

[PATCH] extcon: axp288: Fix build err without CONFIG_ACPI

2019-04-04 Thread Yue Haibing
From: YueHaibing When building CONFIG_ACPI is not set gcc warn this: drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe': drivers/extcon/extcon-axp288.c:363:20: error: dereferencing pointer to incomplete type put_device(&adev->dev); Reported-by: Hulk Robot Fixes: 0cf064db948