From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751735AbcDZAnr (ORCPT ); Mon, 25 Apr 2016 20:43:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:24192 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbcDZAnq (ORCPT ); Mon, 25 Apr 2016 20:43:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,534,1455004800"; d="scan'208";a="952818039" Subject: Re: [PATCH v6 02/10] extcon: usb-gpio: add support for ACPI gpio interface To: Chanwoo Choi , felipe.balbi@linux.intel.com, Mathias Nyman , Greg Kroah-Hartman , Lee Jones , Heikki Krogerus , MyungJoo Ham , Liam Girdwood , Mark Brown References: <1461571496-9600-1-git-send-email-baolu.lu@linux.intel.com> <1461571496-9600-3-git-send-email-baolu.lu@linux.intel.com> <571EAD88.5000505@samsung.com> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: Lu Baolu Message-ID: <571EB9BD.2010502@linux.intel.com> Date: Tue, 26 Apr 2016 08:43:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <571EAD88.5000505@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 04/26/2016 07:51 AM, Chanwoo Choi wrote: > Hi Lu, > > On 2016년 04월 25일 17:04, Lu Baolu wrote: >> GPIO resource could be retrieved through APCI as well. >> >> Signed-off-by: Lu Baolu >> Reviewed-by: Felipe Balbi >> Acked-by: Chanwoo Choi >> --- >> drivers/extcon/extcon-usb-gpio.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c >> index af9c8b0..472c431 100644 >> --- a/drivers/extcon/extcon-usb-gpio.c >> +++ b/drivers/extcon/extcon-usb-gpio.c >> @@ -26,6 +26,7 @@ >> #include >> #include >> #include >> +#include >> >> #define USB_GPIO_DEBOUNCE_MS 20 /* ms */ >> >> @@ -91,7 +92,7 @@ static int usb_extcon_probe(struct platform_device *pdev) >> struct usb_extcon_info *info; >> int ret; >> >> - if (!np) >> + if (!np && !ACPI_HANDLE(dev)) >> return -EINVAL; >> >> info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); >> > Applied it. > > Thanks, > Chanwoo Choi > Thank you. Best regards, Baolu >