Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755076AbbBRTyz (ORCPT ); Wed, 18 Feb 2015 14:54:55 -0500 Received: from bhuna.collabora.co.uk ([93.93.135.160]:35814 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753238AbbBRTyy (ORCPT ); Wed, 18 Feb 2015 14:54:54 -0500 Message-ID: <54E4EE06.8050101@collabora.co.uk> Date: Wed, 18 Feb 2015 20:54:46 +0100 From: Javier Martinez Canillas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: Arnd Bergmann , David Airlie CC: dri-devel@lists.freedesktop.org, Vincent Palatin , Andrew Bresticker , Sean Paul , Rahul Sharma , Ajay Kumar , Thierry Reding , Inki Dae , Sjoerd Simons , Gustavo Padovan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: drm: bridge: ps8622 and ptn3460 depend on gpiolib References: <19803561.otRxsE7o5u@wuerfel> In-Reply-To: <19803561.otRxsE7o5u@wuerfel> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1497 Lines: 38 Hello Arnd, On 02/18/2015 05:09 PM, Arnd Bergmann wrote: > The ptn3460 driver recently started usign the gpiod interface > which is only available on platforms that come with GPIOLIB > support, resulting in a compile-time error: > > drivers/gpu/drm/bridge/ps8622.c: In function 'ps8622_pre_enable': > drivers/gpu/drm/bridge/ps8622.c:368:2: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration] > gpiod_set_value(ps8622->gpio_rst, 0); > ^ > drivers/gpu/drm/bridge/ps8622.c: In function 'ps8622_probe': > drivers/gpu/drm/bridge/ps8622.c:584:2: error: implicit declaration of function 'devm_gpiod_get' [-Werror=implicit-function-declaration] > ps8622->gpio_slp = devm_gpiod_get(dev, "sleep"); > ^ > > Similarly, the newly added ps8622 driver started out with the same > problem. > > This patch adds explicit Kconfig dependencies to avoid trying to > build invalid configurations. > > Signed-off-by: Arnd Bergmann > Fixes: f1336e6afb ("drm/bridge: Add I2C based driver for ps8622/ps8625 bridge") > Fixes: af478d8823 ("drm/bridge: ptn3460: use gpiod interface") > Patch looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, Javier -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/