Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1646507ybm; Tue, 21 May 2019 18:29:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIdO7f6RQQdvrCsOL4LkRkioN7w5FUNRjXvEIktU5Bw8eBGbqcpL5Bc2NkZbgZkbNMAcTd X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr71437600plq.98.1558488564012; Tue, 21 May 2019 18:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558488564; cv=none; d=google.com; s=arc-20160816; b=kudm5qJ6eQuIfRKDRpGrubcUVnupNMRjhLXCViITQOXt+fUsStZvWbPaU9gDO8lfx7 jOaH/kL8K0OxhaOsQJ9bHyda8wCRaL3mIJxyB0M2ewNi9W1cF4tIv8/S+4LAYlXNIn+R 3bnznPiRKQRidT4y9eUEVUJma2fC7fOV04fF5th5zIshKNIMWgPklpDJ7qOBEDOY5/qD AmHMwt4oOv0yrrvNIGwXjKIZ1i61yLXeBTwWnvokS6jpZLpD6CdsmJBDcsw1XsXZL4C8 yzgxXu1cC1eH3n39CuRhZEU7I+Z26OJVdxID33f/2iuM9iKy6NOVY8rKgbkNOV7SPQh/ HdHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=XzkZpLUXOKW7m6+mZ2WcIQDMuFvLDmkmvdyAaZy5wu0=; b=JBwl7ceXCEhGaNC6w96YHjGV2nZQO+cHdRDh/vh4y8xkFO8OorpdesyvWu5koPw8si AHHcSMb6+9PRYKEAWKOk/s3f7dxrOs9H3JCuJn2PKzjA9m7LtsBDIWSlKDl7adgOaJdO zmwqsOL9dvN/pWhtkivjNDq4rPIXE1eH4/JEIcB3o5f9a8UKlUid2GsgcCQz25+v8aqs 9090dzVJQmbKKoJutDF/o4+vFttLnqqPLsf2UVu1Wuf7Dv1mUz8Qb9BPs5EWOw5ohs8Z muzrNrb5g3oSwY9kotMjDuPwzfYK8wBWfXKENHT/QsMpOGMzBJE6aMpMlxOMejEv7fAM 9qGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oFH7pGT1; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si23331370pgp.35.2019.05.21.18.29.07; Tue, 21 May 2019 18:29:23 -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=oFH7pGT1; 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 S1728065AbfEVB0s (ORCPT + 99 others); Tue, 21 May 2019 21:26:48 -0400 Received: from mail-pg1-f171.google.com ([209.85.215.171]:44226 "EHLO mail-pg1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728099AbfEVB0s (ORCPT ); Tue, 21 May 2019 21:26:48 -0400 Received: by mail-pg1-f171.google.com with SMTP id n2so399033pgp.11 for ; Tue, 21 May 2019 18:26:48 -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:in-reply-to:references; bh=XzkZpLUXOKW7m6+mZ2WcIQDMuFvLDmkmvdyAaZy5wu0=; b=oFH7pGT17S+xMx8HG3afPL2D5gRK+wpsgupbtM9RSGc6A42rw+I+EDo+N8/CqTI7EZ uXpY0tObv9H7bswn4azKL+PSf9E5vgl5x5lMxN9fWIZognqP7NCHkyqnC5kdpCId6h6W X7/k0veibbbrV5Wl7/8Trcg+gOr87y0rBAP+FMOMMb6UOQhE78WJnNr3kQ4efJAMaRns JrUgDESLmKAbXV1h1hHhUo1QRVvq+tPUGOlGtw8mC+8OxhbK2wSIa1GYQ60h6H59DpMn 0PPLGYuMyu5s0vxISfp6nsnb64I1eeRLMqcfx4E5pEM8tyd7GCkp69O9ozLnyeRM4PEb Qc1A== 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=XzkZpLUXOKW7m6+mZ2WcIQDMuFvLDmkmvdyAaZy5wu0=; b=iOfQp17qCk9ic97HcsTiy4RdChzAQM4xLEcEcDFGo6/yBV9HVp8RZ2Boe3I1BROMRo jNtcndV7CLPsU8cTKOlxAp5tkVY7hcbtniYq4NeNYssldvaEISn9JA+Ps/zoZxUtXY2z 6PFJVygydlSIS/HbA++s4e2JEJw1QpEuARZp6nkUOlQug1i2YrbhZx0lcSyMNEgEdWmy cVzPveeFglT14MM4Q2fWDWiFBHwjSGHwK5oxS/KhFP7TL16+ZT03/tDq3dPYPOVHFEHQ NmOUZUN+ryiPLrmBqp7MLJEl/mU5KvC4KeMw7eNWlSQGr1I8kd2mV6D9RJrnUGFKDJTd Njhw== X-Gm-Message-State: APjAAAUqIBliaXj3Cp2NKHA8g6UO+KPZMXuwC0xk2M57d2l7XdY1vKGm 8hyKkEn/l3W3YmbXA5natIEMog== X-Received: by 2002:a65:41c6:: with SMTP id b6mr21977722pgq.399.1558488407887; Tue, 21 May 2019 18:26:47 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id g17sm14562071pfb.56.2019.05.21.18.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 18:26:47 -0700 (PDT) From: Chunyan Zhang To: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Chunyan Zhang , Baolin Wang Subject: [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails Date: Wed, 22 May 2019 09:26:40 +0800 Message-Id: <20190522012640.19910-1-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190522011504.19342-1-zhang.chunyan@linaro.org> References: <20190522011504.19342-1-zhang.chunyan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function sprd_clk_regmap_init() doesn't always return success, drivers should return immediately when it fails rather than continue the clock initialization. The patch 1/3 in this set switchs to use devm_ioremap_resources() instead of of_iomap(), that will make caller programs more simple. Changes from V1: - Split out the patch 2/3 from 1/2 of the first version; - Added reviewed-by from Baolin. Chunyan Zhang (3): clk: sprd: Switch from of_iomap() to devm_ioremap_resource() clk: sprd: Check error only for devm_regmap_init_mmio() clk: sprd: Add check the return value of sprd_clk_regmap_init() drivers/clk/sprd/common.c | 9 +++++++-- drivers/clk/sprd/sc9860-clk.c | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) -- 2.17.1