Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1258821yba; Thu, 4 Apr 2019 07:20:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrdDXUWUaYVGPU3Jpzc1G4LmwbsC13eBZDVF2owOV/dQmEInO8KLTL1xETvbwXgPbYHYOs X-Received: by 2002:a62:6490:: with SMTP id y138mr6196559pfb.230.1554387649256; Thu, 04 Apr 2019 07:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554387649; cv=none; d=google.com; s=arc-20160816; b=kEWj7oDwGhtErEzBmf4VmG+wY0er1pH8c3Z3CtZKhBq7ZcKihh/O9g8lSRNjPEqY4m iUC5WTheXXEkVjuctRy9IRM/s8ZV6N0ymfgEqXIPipcoCv/4ZOBVVvDUVZTNDuYpob7w QYKPRYGlRXEJ40Ensg51PDYAy81fsrXaQUH5znbzVYWuMt/RQjYOxB6qNn7wCd9tvgO/ mG311+oIw5gA5VX+/nnUtZdZX3ihMz3Ku3/AcD5VjQzY0Ktbdmhx7NE1OpALeDi5eSOZ 462HbbvPAVqFz1bWAO9tNVi/8RXyZ+dyhpHVDobn9YSidbli8Npx/o5MAyokPBfUMPHW NwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=HVGqVhlrJpiLZKjYfh3ol9fzuZJWaNZA3A10vuCqvx4=; b=XI6U1WCom2fBZAyK45tB13Bda42orwPoGKFV/slPcbC8a87PMphxYOfj98ojnHghGX eIANtmXbn3vdCWTf0S0bB03VAy8mpXZJxTP6ENFX2BeG3anT9Q9aL0KbeJKi9JbbqzM6 qkhDhuzqxVMCPlF+0cFr5rUREIPGqgNGRpuURtJTi6RZNSpV+BxN/G6w6iOd5bst9iIW 0ntvsQv2qfP7jyd6a+nz2IEcMPuoAiaGzW4PxUYEVuc8U9GaXhi37WtDx4Uz0YHgxmCJ y3QVmAcoq0t3HVU8kyUWUmYrgapbNooDCfwMX8C8gu0QAdqoU9I9eo/V1b7PMRsII/SK KZKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si5613371pgp.280.2019.04.04.07.20.33; Thu, 04 Apr 2019 07:20:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728487AbfDDOT5 (ORCPT + 99 others); Thu, 4 Apr 2019 10:19:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:53930 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbfDDOT5 (ORCPT ); Thu, 4 Apr 2019 10:19:57 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 06EAF2BCCF8260A31802; Thu, 4 Apr 2019 22:19:53 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Thu, 4 Apr 2019 22:19:42 +0800 From: Yue Haibing To: , , , , CC: , , YueHaibing Subject: [PATCH v2] extcon: axp288: Add a depends on ACPI to the Kconfig entry Date: Thu, 4 Apr 2019 22:17:48 +0800 Message-ID: <20190404141748.27048-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20190404104222.23900-1-yuehaibing@huawei.com> References: <20190404104222.23900-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing As Hans de Goede pointed, using this driver without ACPI makes little sense, so add ACPI dependency to Kconfig entry to fix a build error while CONFIG_ACPI is not set. 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); Fixes: 0cf064db948a ("extcon: axp288: Convert to use acpi_dev_get_first_match_dev()") Reported-by: Hulk Robot Suggested-by: Hans de Goede Signed-off-by: YueHaibing --- v2: rework patch --- drivers/extcon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index 1ed4b45..de06faf 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig @@ -30,7 +30,7 @@ config EXTCON_ARIZONA config EXTCON_AXP288 tristate "X-Power AXP288 EXTCON support" - depends on MFD_AXP20X && USB_SUPPORT && X86 + depends on MFD_AXP20X && USB_SUPPORT && X86 && ACPI select USB_ROLE_SWITCH help Say Y here to enable support for USB peripheral detection -- 2.7.4