From patchwork Mon Oct 8 16:14:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 148417 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3838658lji; Mon, 8 Oct 2018 09:14:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV62n+cuk42ruRYYJC0juL/pVGAmyeMBzgvcgBc1x0HEEyH++MpQLfZ4paIl8rbUo+8FfV9Ig X-Received: by 2002:a65:4301:: with SMTP id j1-v6mr21796565pgq.279.1539015295768; Mon, 08 Oct 2018 09:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539015295; cv=none; d=google.com; s=arc-20160816; b=CJK1jNvWungMHK3YrRv3SbHRiIIqCg1oFUQ8Xl+6haxJZ1toJllanf2GZNnIBkl+z1 E/66Sow29PYDvjEvr41gGscCzhJup8zGbXdgWHPb5nZ+bhwuat0uLWS+iOV4o1jjDSoU ySaLRaLm+5fs+WDH34m1zLvtYGlPxxzpc4L2pls4WC7jqxww9MsCg7CcUMnuX+eJsix6 z9ElM718ukpX73wE/V1SsshF+gAAkbARUrMjeLtst3rhOdcmPu4yLGp6hQKftBlwoO93 fSzzFZa8DPb+Prg//17wJWHjVSwHUG9nKWTQo4i5UWhN6FDS79Ed+d2QWAgoCoM0YkfV sUjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JVi0c2oq+8r4ZI3w7NNqpS6nwirmBsRB4YnJFSEA+vI=; b=unPZ0nItn1pqPiCTGtsx15MkSTP6Agmo89m16Y4Y9qSB0rtYsaBH9m/PtvYRVE4DXn /6ZdbyAP6qwt/RXqeSS2+u2kaw/ad/vQW5s5bUG5uyR3bKFPrqzsqWHNAeqznmp6WAjr ci72n4a6ZhbP1MskQ4PKCjR8sddS3SrcXpJUEC4slKx+CVKSc0KRD9XA/MUjpKYOxihh Qi+GT3IGzQZaFgipitycJx5yfMP2Cvbvt+aCY0nj5oHUcOcXxCuIeEctMobKqfkJfpIx DmJSn+TatO6yRUHh70yoEyNIcqrusax1Z4vBh5bkAmKd3b7JiPUDIT/Z2FGeXJ8OxUc0 HOMQ== 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 g5-v6si18187631plp.29.2018.10.08.09.14.55; Mon, 08 Oct 2018 09:14:55 -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 S1726671AbeJHX1V (ORCPT + 32 others); Mon, 8 Oct 2018 19:27:21 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:47427 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbeJHX1V (ORCPT ); Mon, 8 Oct 2018 19:27:21 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1N3bb3-1fiI9G3tPH-010ZL9; Mon, 08 Oct 2018 18:14:46 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1N3bb3-1fiI9G3tPH-010ZL9; Mon, 08 Oct 2018 18:14:46 +0200 From: Arnd Bergmann To: Liam Girdwood , Mark Brown Cc: Arnd Bergmann , Matti Vaittinen , Axel Lin , Lee Jones , linux-kernel@vger.kernel.org Subject: [PATCH] regulator: bd718x7: include linux/of.h Date: Mon, 8 Oct 2018 18:14:32 +0200 Message-Id: <20181008161444.3871508-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:UCMr4PVpGdFqxDS9uyOmAXl7kbM/hCUIDY+g7sIMGkcvX/QtHjX S8GdPHwWzRIB2jh5oRIPZf8F851HNAulrXnNbtMYOugDj8Og2qqWJMRq6WD+7c//L98Ne5M aFMa1dCKN1UDTQxLhQ8NQOKmiVHLW/eqHNkpt4hGdVcqHF2iH43QrB5LdOTxswuWM2Pulv8 oMImayiOk2n9YPbS0HGXw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V01:K0:u2tMWiCZjC0=:W+vObD8TWeBTdFYWzEj//W EzePj95q8Dh/092v5lo1c2eRD/YUfPWfZb5voFDLOvcdsgHgQ10H7XlMRkN1qoJyjhA9nY9y+ /pgBHqbu2YiPZ6Rt7scApNQHqwp1DMqXux2gLikHKbFM5hDZQmh85u34foo3WqLgsTVtoZAhO 3nsasw7NA3kmRVy8ezRZVRFXMD57szCZP3pP4E+aShTUqLG8DtZmXcaKstRrswOm1e3l7SZ7X GqVndedvyS4+1/LXIfxRz71OG1h7kUKc0r6w9RyWAiiS2YmqpEeX/ET4rx6T2aVG0JzD0fRv6 ML1CZ5dwkqZAJk80m861Q2HMI0nxz+M9yc5bSehptw3RlO72P3QNBmAOw5BbX6HPBJ0w90gMo 7lB0kJ+cP+anlK2HGOqywZ+LlqbtR/uSpIQAR1c9rEBsEeQiSaEKUrW8W31es6wM5rTuJHBnb bsZdxYVEibJFVZKd2IIwIGSmbjeKy72nztJG17bszhnLSqWY2N9nCiigAEy/I62SsoOdiLGge bG0H6pPvNzIr4QAekMMFb7bR+k18YBuouxu9+pAAhgHVlvgI+iHuPm76/bXR+Wtvk0APTLTg3 xs11BdEyPjPHJoxCrdi1E+tKUP1egsfz6qo8FNvpeGK78WfJgS9fWAQKXReP4QdvDJfs3MpBH x8iSoS9IYJS5/1jQtJ9k8tB5OIznjncWuGakuP8SQyYECg5B1WjIVaMnuIV8BZlO9Sq0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this header, we get a lengthy build error: drivers/regulator/bd718x7-regulator.c:364:16: error: implicit declaration of function 'of_match_ptr'; did you mean 'hash_ptr'? [-Werror=implicit-function-declaration] .of_match = of_match_ptr("BUCK1"), ^~~~~~~~~~~~ hash_ptr drivers/regulator/bd718x7-regulator.c:364:16: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] drivers/regulator/bd718x7-regulator.c:364:16: note: (near initialization for 'bd71847_regulators[0].desc.of_match') drivers/regulator/bd718x7-regulator.c:364:16: error: initializer element is not constant drivers/regulator/bd718x7-regulator.c:364:16: note: (near initialization for 'bd71847_regulators[0].desc.of_match') drivers/regulator/bd718x7-regulator.c:365:23: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] ... Fixes: 2ece646c90c5 ("regulator: bd718xx: rename bd71837 to 718xx") Signed-off-by: Arnd Bergmann --- drivers/regulator/bd718x7-regulator.c | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c index d2522d4e1505..7bf25aafe077 100644 --- a/drivers/regulator/bd718x7-regulator.c +++ b/drivers/regulator/bd718x7-regulator.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include