Message ID | 20190808141818.22724-1-anders.roxell@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp8638463ile; Thu, 8 Aug 2019 07:18:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsJT+wntPV5MrRtOOaCp0JDvV25xhVDHoc2rFES6DC9Szqi9xqJdyTgVR88SNOvxkh4F0t X-Received: by 2002:a17:90a:8984:: with SMTP id v4mr4295003pjn.133.1565273930736; Thu, 08 Aug 2019 07:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565273930; cv=none; d=google.com; s=arc-20160816; b=uJPksxdXObRV4dVKFk23tTmkBzlVWzagcmQTi3H5aTBxg/NKSSFY1pKJ3WoU4QhkSB 9aoaWaShG7CamqTQKUpGNepeeRvFJhH9vW3HrbtUZUgvhReTwz4pEek4IjlZr7RfYfjZ y8IpbLRwNfbA3FkSkih6mXAkFee0Lvwuvvm3Son/225XWwCbAY2/64aaG14oCBFejAEE sZGBbWGDlzHELbi7LvwDa8O7bDabg96N5EQwswvsNNA+PNJIycL8ZiitUHEFEP73famw xoO8kQ+mPsuyv0q25ps8cnWf+PVq8XaoTZfNXiEPXNRteHshhIysBPNRLVUY0eXxvqFT jSgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jhsxlul3OwiBIVvc04AVKPmmFUhTDu4EGMToigpGygk=; b=UlrpcsF+EmR1XiFAaDjKa55h6HMqE74FEuVM1OVctmdD2VUU6j0BPakrcmgAPvJN0d fHrYN6DytOkQ13Hu734Y6yAOn84AYF7nmw6RqoPCiJlWPEYjxfOhVQDBtqJWSEAKcPHs n2z0ryGEk/o+H6n7NVPABqAAJdbqX8Ndxssa9qdi/qnPrsd+UXz0iuihf44d/clAxKZP lc2cZCJefRkf60YCrwJ6hTMHnTfhRrHmJKezjmMlq1o9Vg8Z48L7/cq96onkcWyuJW/H aF5RVFYyEeJ84P+D/v/2BHEw0I21SBkuCbpVcCZ7jTlVD81Hfx4t2NvSPmT0Cph1c6oy Hkaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MU6+HxBr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si46234438ply.15.2019.08.08.07.18.50; Thu, 08 Aug 2019 07:18:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MU6+HxBr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403808AbfHHOSt (ORCPT <rfc822;mike.holmes@linaro.org> + 28 others); Thu, 8 Aug 2019 10:18:49 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45523 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729203AbfHHOSs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Aug 2019 10:18:48 -0400 Received: by mail-lj1-f193.google.com with SMTP id t3so517019ljj.12 for <linux-kernel@vger.kernel.org>; Thu, 08 Aug 2019 07:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jhsxlul3OwiBIVvc04AVKPmmFUhTDu4EGMToigpGygk=; b=MU6+HxBr8T3nNzAAL+z+pTRU4Q1K/LDUDiBqOnzGFfIZN318yE/zZKkkULPneTMFIS cjgmOMb1qW0/495NNw/1f5BcFH6zvzFY6r/8GSBr3W6hP+oznlS7GOJdzMuoiBq2NtR3 2edcckLnsWf3iG6N88DfNuxQmC/LUsmJj88IZQBhsVVCABEs/oG6u+68IPjX48Z5ut4r 2AqJlbpo4sykyGqaNPZfm+Muwlug81dSnHigXnB7G3oxuqHst0da531hVIR4krdpfePC YYu1t+GcVdIPr5raf0AobnMsWu4hm2WkJNrz0WwPwRTn7Ag376QGs0FZiEYa5k01hvaM 0XQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jhsxlul3OwiBIVvc04AVKPmmFUhTDu4EGMToigpGygk=; b=VJaQT1MYoCTtwhXLuHHnOaTsaGnJOe1eGew31mpG0k/Z7/TiMxAjYGGVX4k/j7VhQc RFkc8GDaiTfrj9/+lWKbdJKha226bmtPiUZaMDwazxBjd310TryPWr+/6aYWVhlWn16k ZUmzVDEb9BFtrP6N6wBHN9zOOLKSJ6/RFAGCUxcSz/I5KymW8bYIs607qFKxSFHeHhps 5BW5sOaAdWjN70TOlKgkfuP4QOPmmzgoGuydnXlmqxMcJInqmgi4sc9XVxBXE8uXgiNI StXINscctT8sNp0fY34w3Ee5FZfk1Aams0/EMzExbkJV21juAoUZWw5PTcTtp/m7GvLc D5wQ== X-Gm-Message-State: APjAAAV9VJMVXv3hf3jeeyAn7DfcJcbTa3OZHIVTpIrDdvP/bfGuu64B XPIAT28GQEgPYuqYgaz5GZV7Pw== X-Received: by 2002:a2e:2c14:: with SMTP id s20mr8388531ljs.54.1565273926450; Thu, 08 Aug 2019 07:18:46 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id u5sm3929668lfg.66.2019.08.08.07.18.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 07:18:45 -0700 (PDT) From: Anders Roxell <anders.roxell@linaro.org> To: robh+dt@kernel.org, frowand.list@gmail.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell <anders.roxell@linaro.org> Subject: [PATCH] of/platform: fix compilation warning of of_link_property() Date: Thu, 8 Aug 2019 16:18:18 +0200 Message-Id: <20190808141818.22724-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
of/platform: fix compilation warning of of_link_property()
|
expand
|
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 21838226d68a..86fb8ab8c012 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -625,7 +625,7 @@ static const struct supplier_bindings bindings[] = { { }, }; -static bool of_link_property(struct device *dev, struct device_node *con_np, +static int of_link_property(struct device *dev, struct device_node *con_np, const char *prop) { struct device_node *phandle;
GCC warns that a negative integer can be returned but the of_link_property() function should return a boolean. ../drivers/of/platform.c: In function ‘of_link_property’: ../drivers/of/platform.c:650:18: warning: ?: using integer constants in boolean context [-Wint-in-bool-context] return done ? 0 : -ENODEV; Rework so function of_link_property() return an integer instead of a boolean. Fixes: 690ff7881b26 ("of/platform: Add functional dependency link from DT bindings") Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1