Message ID | 20171127104854.333-17-brgl@bgdev.pl |
---|---|
State | New |
Headers | show
Return-Path: <linux-gpio-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="FUGXnWWD"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ylk8y5jqwz9sPk for <incoming@patchwork.ozlabs.org>; Mon, 27 Nov 2017 21:50:26 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbdK0KuY (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Mon, 27 Nov 2017 05:50:24 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:45151 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbdK0Kt0 (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Mon, 27 Nov 2017 05:49:26 -0500 Received: by mail-wm0-f66.google.com with SMTP id 9so33105597wme.4 for <linux-gpio@vger.kernel.org>; Mon, 27 Nov 2017 02:49:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fqu7Jn7BvMH6F6u+Y4tnRR+gejphBPLrCFTgKE9zqaw=; b=FUGXnWWDOtVc5g+KXam8peib8Z6OZQuxNATfO5ZQPE4egOit8lx/nZM5j75qPxja7Y 40YsE+Z5jzMM5dGTmySwqmQOua0SYP4Xa/ARq4jkXrV5NUdYIjZtUNXEj0wNRz6mtGeo Ed+B2TUkYAIa9EBvJ9cDF2K8eOSr9CSwIRNBthy0aqN4qy8zWCbdzULmr/Uq7PX7kXdS MAf4Wz+PNTKi3Zcu5J7FEZ6uLtCpm64voMEeWEaURuSDh9wAxN/o7cDLo2GQKN42sh+r +igBlPB3gKl3wXQsh4dwFdBF1ocBXEfyRitfSu7+hCjhvzJEjMzPMLeAJTjMqtd8JRIa KziQ== 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:in-reply-to :references; bh=fqu7Jn7BvMH6F6u+Y4tnRR+gejphBPLrCFTgKE9zqaw=; b=S/elaVqsB+AMiybuJs0AlyMq0qPCbcPHDwu3Vta+IJgDKU+0M0gtB9uZll+hqA4pA8 JDo9k+MdoFyb0Kw3I173flZxRseGBO+w/3B23x5lH0HrOpBO6Bzs1K3jUfaq4BjQgnof drYLDhbkPj26yROuN8lusQT8rSPTf2mt+UK6VVTpSjoHrinlxiy0TYWSA7pna59ngWZK fXVGln8xyGRzOq8iEDBldCwihMLi7eN8NWz852bJDuMibUP6P3OPsD/MtT35jHDwk8DW aafCFjtKVzxNsm3kNb2FT0verQPW6S8xHPTPEMorYl69edGi02EhlepVkbVACYHnPFvA RCMg== X-Gm-Message-State: AJaThX5sKU3ek2u6WLTY6adUeJs1ubFXgKRIryOcEQ38PJJUtgCGbKbd pQ93bKVuIenTbTm0snKwTry5Sw== X-Google-Smtp-Source: AGs4zMaojQnnH06NtsC40tMRzq6VbLFJkMTgt76+I5RNmAVNbCObvTrhmG4oph9C8UAvZl6lEV1XGQ== X-Received: by 10.28.101.11 with SMTP id z11mr14142966wmb.110.1511779765481; Mon, 27 Nov 2017 02:49:25 -0800 (PST) Received: from bgdev-debian.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 68sm21071741wmh.2.2017.11.27.02.49.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 02:49:25 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Linus Walleij <linus.walleij@linaro.org>, Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski <brgl@bgdev.pl> Subject: [PATCH 16/18] gpio: mockup: modify the return value check for devm_irq_sim_init() Date: Mon, 27 Nov 2017 11:48:52 +0100 Message-Id: <20171127104854.333-17-brgl@bgdev.pl> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171127104854.333-1-brgl@bgdev.pl> References: <20171127104854.333-1-brgl@bgdev.pl> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@vger.kernel.org |
Series |
gpio: mockup: updates for v4.16
|
expand
|
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index cbc823e43151..0abb53038ba8 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -297,7 +297,7 @@ static int gpio_mockup_probe(struct platform_device *pdev) } rv = devm_irq_sim_init(dev, &chip->irqsim, gc->ngpio); - if (rv) + if (rv < 0) return rv; rv = devm_gpiochip_add_data(dev, &chip->gc, chip);
As discussed with Marc Zyngier: irq_sim_init() and its devres variant should return the base of the allocated interrupt range on success rather than 0. This will be modified later - first, change the way users handle the return value of these routines. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)