Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp378097ybl; Fri, 9 Aug 2019 07:21:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxohfGtJZ4mgBet4NDyVtH/15GvnQFb7yPg0F9pEaXUEU0BaPeQ73rGNar6j/fJMJnzi8kT X-Received: by 2002:a17:902:8546:: with SMTP id d6mr18805444plo.207.1565360515775; Fri, 09 Aug 2019 07:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565360515; cv=none; d=google.com; s=arc-20160816; b=Kwn1HFO4V8A/cPFQnW7F/sDFgksVayO7iIIxbMERrSIaELe8dyxyccUZUH7a++rr0F FDolVEaWtZnd/o8Ko6x6+hziEQnx+qXIs6brajl/zMbDAUdD2lgh+fLKKO6A+2p4b8q+ z8Tm8XS2AkkfiwWwj9q/BRvFLcWQNRoaTO0kg5yXdm0C6mFwlQjN1ZzlIvNGd12BO9Bm szYz6qHEDPNaW1zjX8tLp0nA9mqRcBg4ACY58G72KbMAo3impgpAw26borDLaK7bIyC4 9hRd1JLAd1L5Opicr/Fz8XbydaFgTlJzVaD9PSJTqslJlYmigbVYf8yTGxIZY5oZJqmW LBRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=iqpS6f4iYT2/EOjyhlDBwimFIDoQ2vjPU9zyXzeymVs=; b=Af8IT5vAdd0luy3Gt5wxPSsWX/d/f13YDEFZADFRevUPabtiMqH9sqIPIQ4CG/PGvQ OXHQLzKfLSV1c6B3JXXqhB9G4YdgEQC2PXPydvqVKMeJQmCrCUkrGrKUKtChPS5oYqlG x9fliQjuVGVBTxxESRFMECalZzk8FoslPQyW5NQmzx267Qr/Qch2ZjVX83YddAKmRs1Z G6qACas7v+k9k9hjHrY+2sWmO9cZJzzmMuzwjKvBxVK13f7Zm6Xf/6AaPoPfBYIoUSTj 2BdSu2n7Enb35dyz/nbPsjksosfr/yUdq2X3ZnsBJEdLiGeXWlgcOLKaTQ616n/ktoFy XGeg== 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 n124si50443594pga.214.2019.08.09.07.21.39; Fri, 09 Aug 2019 07:21: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 S2407118AbfHIOUD (ORCPT + 99 others); Fri, 9 Aug 2019 10:20:03 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:41046 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfHIOUD (ORCPT ); Fri, 9 Aug 2019 10:20:03 -0400 Received: by mail-qk1-f194.google.com with SMTP id g17so1061588qkk.8; Fri, 09 Aug 2019 07:20:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iqpS6f4iYT2/EOjyhlDBwimFIDoQ2vjPU9zyXzeymVs=; b=tgGY1n0aBq1wKRyOE9mbT7s3RsuCu6FgHAPajrNs49W6xNDNuuAvZ3HM4L/hXgys30 QLAl3mnAEJtFOeRw0fAmJ3LdBx9nq05hQzg6knN7Znykfb3fvo2IKs+zjhUQS6cqpQ22 ijEhehP3zy+v71aQfpVYsClxRfSlxGL1afgYfvjqNRkOjk6HDu6IudEsXfphJTGM9srJ 1cf1PFaTftLzRizDDHjfVsAfDksMVPT8I8y9TjWH3YbXUoT36edrLBuPhlKaYMmFvASN YVVEEv+FOIq6FRRJYScZoLazV2uYwS9UDTEkuhjW53AHvuB1d1WadYnxXGpeWrLEZO3x JdOg== X-Gm-Message-State: APjAAAXDxVeskRlnapr5AGSYvOW7zYvbLNyU2j9d+P3tgbQ2sICMtZW8 gXGXkxW76cxl4mqtx5W0BbbONm+N7oOR9WnLzeo= X-Received: by 2002:a37:4ac3:: with SMTP id x186mr17754552qka.138.1565360402354; Fri, 09 Aug 2019 07:20:02 -0700 (PDT) MIME-Version: 1.0 References: <20190731195713.3150463-1-arnd@arndb.de> <20190731195713.3150463-6-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Fri, 9 Aug 2019 16:19:46 +0200 Message-ID: Subject: Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets To: Sylvain Lemieux Cc: soc@kernel.org, "moderated list:ARM PORT" , Vladimir Zapolskiy , Russell King , Gregory Clement , Linus Walleij , Bartosz Golaszewski , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , "David S. Miller" , Greg Kroah-Hartman , Alan Stern , Guenter Roeck , "open list:GPIO SUBSYSTEM" , Networking , linux-serial@vger.kernel.org, USB list , LINUXWATCHDOG , Lee Jones , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 6, 2019 at 10:02 PM Sylvain Lemieux wrote: > > > > + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); > > + if (gpio_reg_base) > > + return -ENXIO; > > The probe function will always return an error. > Please replace the previous 2 lines with: > if (IS_ERR(gpio_reg_base)) > return PTR_ERR(gpio_reg_base); > > You can add my acked-by and tested-by in the v2 patch. > Acked-by: Sylvain Lemieux > Tested-by: Sylvain Lemieux Ok, fixed now, along with addressing Bartosz' concerns. Arnd