Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5643346ybe; Tue, 17 Sep 2019 11:10:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwn9cybNYnpd0/km2FRPiVG+sQiLSmgJ6nFwVh+WKkDjCMld9Kj6ZZSb5hkaeVuvPTP86PU X-Received: by 2002:a17:906:8308:: with SMTP id j8mr873537ejx.142.1568743832528; Tue, 17 Sep 2019 11:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568743832; cv=none; d=google.com; s=arc-20160816; b=H5Ka4NW02AtPQcaIsSS4KbY+kqKRyzzALeYqk40bJCCgwAyA0GvdnVQfF/g02gJavx OY7HhgmaGDrLm+B7GvHAHuUr83aoInBuTSfy2qHBs9O8FaHTluTSeYcwAm2xzpaLUi1S L4aaFDDkZPa+Zif/HS5pYG3mIrUaGIdaZIzwsO86Dps7r/19SZl/Lb2JUfFdUGjai8kd haDLLCD8sGHjhv3i0SOUaVbiBeBxqNB+u3I7VOfid0zrLBAuPdc9howariq1QeNx7JS3 4dqeM9v51ayfPprKavBAwo05dDasPfAysDj+U64M0jNlkXZT1ZKLA4MbPJD0/CMvP28q Rvag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=OjulAGrUuGemM9gSZfSlGAauZMenX7YjWl3lxcSoow0=; b=tOk/4FB1svSLi3kxGejR9VaLgVWkZNkMLgB37dbz15vNxBmqlVXB6/gQNycEA6dxuR P49kGO8/uEWEXWNHrwQsBsNtVzC935t4b+w5GdoiZvleRhMxJ+VM35NbT1ULNNLwGxqz p+4ezlAH91lXGWUaddUptwk0f0FIJYspY4M5KR+zIoqIY82Kw74gfr5O2913UviY8xRn Qowg1BpavkWWmE5E06ClCLc3owiJnwg8lp2PCpICzEf8/d4t7WkqIUzsY/ZfQPUomFCj m45hVycQA+9LVcTi2Y1wx0XX7LBPeja35f2OQZS+SDyFI55cB+y7X+oRB8AnnaDuf5l2 QwCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=NIs3zdhO; 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 l54si1853123edb.206.2019.09.17.11.10.08; Tue, 17 Sep 2019 11:10:32 -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=@sifive.com header.s=google header.b=NIs3zdhO; 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 S1729355AbfIQPVM (ORCPT + 99 others); Tue, 17 Sep 2019 11:21:12 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50997 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbfIQPVL (ORCPT ); Tue, 17 Sep 2019 11:21:11 -0400 Received: by mail-wm1-f66.google.com with SMTP id 5so3989434wmg.0 for ; Tue, 17 Sep 2019 08:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=OjulAGrUuGemM9gSZfSlGAauZMenX7YjWl3lxcSoow0=; b=NIs3zdhOCngBnuBHO1LbLej0XYA0fx3pJvBb5LAq9irsW8UeUktgNHXZMnDZxyaaOr 2k+bvHUE/fHLZ7lf9Kul73T/QwVd+bmEflgxCK0SnHStHOhQnALmk8nuUmXyAzCWPul6 tMU6PN1gvdxlyq/5hh21ijiyxq8ZglCxZeGrVjRnZhCGhY5VeaZ2hh7BtJOh1HISOtA8 1CVnUwBkgaQ0rUpkQ3ZI8DTPHPTiJ4vJpGCsUBPhH185EKUvoa7BkmeUtt0yYJ9bTDs6 u780dgRKf+UcHeceEUe9nq90hYS03wwSc0u8KF7NyWXCV7loB9k1CStMmQLhcJ1cU7zh 34og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=OjulAGrUuGemM9gSZfSlGAauZMenX7YjWl3lxcSoow0=; b=KxGpXS3ezEzJMzvBStzwspptY2xHaKe5SahhSDQWIDVOdWAMMfUtXO9XS7lJVNPXNi rUB6S6N/6vyVQzjdqCFPAHOH14UYnWuUTgFmG8NgUtPCojQUV7dAqW4GHTVeXR4etkDv pxR/yFNCvujPZIk/u4cTkUbT+tcjD2DW0hJqYRZIWRmy8sPScwJFkhy6KrdsDJYFJjrC uY1FBtkJVu1Dz+D5C4CI/Kw8tgI3nacwC+m5v1ZMd5fglpsv4w+7muEYIrgwV/4sqnbI WSVWyW61O4fokiSHJQIBwBykrs2FhcfamnZntyl5vVnhzW2Jx29bgb0wY2NouHVYwHVp 3+Sg== X-Gm-Message-State: APjAAAVK0IjRA+mfH5lVElKZDpNblcRu/NA2ha7bsOB4WDX5IKhpxZk3 J57UHwO/gCBX/joKUYW07kwNng== X-Received: by 2002:a1c:9988:: with SMTP id b130mr4310361wme.164.1568733668324; Tue, 17 Sep 2019 08:21:08 -0700 (PDT) Received: from localhost ([195.200.173.126]) by smtp.gmail.com with ESMTPSA id v8sm3712084wra.79.2019.09.17.08.21.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 08:21:07 -0700 (PDT) Date: Tue, 17 Sep 2019 08:21:06 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Aurabindo Jayamohanan cc: Baolin Wang , Mark Brown , "palmer@sifive.com" , linux-spi , "linux-riscv@lists.infradead.org" , LKML Subject: Re: [PATCH] spi: sifive: check return value for platform_get_resource() In-Reply-To: Message-ID: References: <20190917085627.4562-1-mail@aurabindo.in> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just recalled that YueHaibing already posted a patch to do this: https://lore.kernel.org/linux-riscv/alpine.DEB.2.21.9999.1909041520130.13502@viisi.sifive.com/ - Paul