From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932852AbbGUQAh (ORCPT ); Tue, 21 Jul 2015 12:00:37 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:35752 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754936AbbGUQAf (ORCPT ); Tue, 21 Jul 2015 12:00:35 -0400 From: Guenter Roeck To: Liam Girdwood Cc: Mark Brown , linux-kernel@vger.kernel.org, Guenter Roeck , Chris Zhong Subject: [PATCH -next] regulator: rk808: Add missing include file Date: Tue, 21 Jul 2015 09:00:07 -0700 Message-Id: <1437494407-16830-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.1.0 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include gpio/consumer.h to avoid the following build errors if GPIOLIB is not configured. drivers/regulator/rk808-regulator.c:97:2: error: implicit declaration of function 'gpiod_get_value' drivers/regulator/rk808-regulator.c:194:2: error: implicit declaration of function 'gpiod_set_value' drivers/regulator/rk808-regulator.c:543:3: error: implicit declaration of function 'gpiod_get_index' drivers/regulator/rk808-regulator.c:543:62: error: 'GPIOD_ASIS' undeclared drivers/regulator/rk808-regulator.c:549:3: error: implicit declaration of function 'gpiod_direction_output' drivers/regulator/rk808-regulator.c:553:5: error: implicit declaration of function 'gpiod_is_active_low' drivers/regulator/rk808-regulator.c:569:4: error: implicit declaration of function 'gpiod_put' Fixes: bad47ad2eef3 ("regulator: rk808: fixed the overshoot when adjust voltage") Cc: Chris Zhong Signed-off-by: Guenter Roeck --- drivers/regulator/rk808-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index cfec52c1a4a2..2dd4e7df2ae4 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include -- 2.1.0