Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1637782ybm; Tue, 21 May 2019 18:16:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg9XQKIuKwjC6ZwQXNf1UK8v3zJxb5+B6bGNXlp5TEMtqrwGy51llgnQrVYPXioO6wQ6p/ X-Received: by 2002:a63:4a4f:: with SMTP id j15mr86081125pgl.338.1558487818599; Tue, 21 May 2019 18:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558487818; cv=none; d=google.com; s=arc-20160816; b=jKtAnKjRSR5U8XZbaN8Na9g6Ep0JAj35c+dtrl7Q2y0lppoROKW2QwyijjNdfYfsrO Oq3TjO0CP4Np2wa2KbpfDWvyljN0rl8RR+1AK90LVzXuCI98+Z5vhaCDQXJTg/gDTXZ3 I2it/PnE1zHFYx+GJCbw1NLQXAmTcOPpXuTpjtoBkiFRCXWHlwfaaf0LKCwG/zF9Ozpq a+DNUhUVC+GTQnj0ixfVtnYdQQcKP6VKW3nEmfhI+Uq08cOPBaWAG+YrBQJAMNjvSyOk s4Hd4VOpy9E9mpOwjp6KoBm2aFMpp0h0WQIn8USWSUONzlYK5uLp5krkQ80XKMlyCqVB kjFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=B43ZvY9Pih8gF9rNgrprI7+aOAj3WLqNtbVbB4LmDsg=; b=1GaLOL7sJSugu6YgfKn6oI1rm87smpIGZQ0BnvJy2xCCa+HEgqBKJyYyfk5eElV6GX jNxQQXgE4Q9fo4wYgSyBOqUnictDHA/OMUnESE1kUd2bC2nviWSPgCZ0Iu41DV7SdRW5 i5+WyIfICG2iqQ4bSsPTmZchSOaAMspi6uMBk9X7hK3JXtCZlD4TehSf0qoD4vO+1hcA zFdkmm7YcTsmxtCHL+HcgKHNY4k1waPmuxDhFimX/Vgv77vQtGYMb7uB5BgRHahnzPen DvvOEg2uCyc2IYrEk/0ql66vQRRexLVH3Hliq9oxbS4Flyw5m3e024WuYV5esB960+Ox mWpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f7zUbSkf; 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.16.43; Tue, 21 May 2019 18:16:58 -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=f7zUbSkf; 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 S1728099AbfEVBPR (ORCPT + 99 others); Tue, 21 May 2019 21:15:17 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:37670 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727930AbfEVBPQ (ORCPT ); Tue, 21 May 2019 21:15:16 -0400 Received: by mail-pf1-f181.google.com with SMTP id a23so382741pff.4 for ; Tue, 21 May 2019 18:15:16 -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; bh=B43ZvY9Pih8gF9rNgrprI7+aOAj3WLqNtbVbB4LmDsg=; b=f7zUbSkfEtRBSQ238IKl1yTWzFYz0OLFYVtHnqzofrICkCfhRO0OJJl6srRe+I7oFo 0kvaUv0p0k/B2fXM7pwQLMo3WDOIT+CZeKTulGphvrIqQ4dHUtkhRbAHMlVkOkVJz3rE dcWKOp5OBejfGHYoHlMRBrlgnmWbn3dyqBGP7EJWOiD9KDxew5fkVEftgD3ak7YF26pF RMkUqltK30ZE6OAxeX0RltToKIisNNxxnFR+qTUgCA73v3uNeJL0jPKMmoOZmlFqPGqm Z9hVLIkhjuH8hnF+h7qcCvxmpk8xSJwIO9ihgACdryWa/PfpGMxrUzlhqz42xTqV8HDM 1bNA== 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; bh=B43ZvY9Pih8gF9rNgrprI7+aOAj3WLqNtbVbB4LmDsg=; b=DUMPku8FEBDuiAoat0v4mx82TegE5xnnE680+Ob5a8KqAhFvKrrU6NG4YvAMpR5bK4 tvICIGmQElDAjcdySdCjPUU0pP78mUY/c0GY4VFr1qzkJfjHAsT/RTq+PRL5wtFO8Nxv qPpb6uIrL1NRcCrggxtON1mpu27HS4cy8PaAjqx5mCfNI7hDNZQc8HW89OR3A6QEu7fC iQiv8ghdE2NIL63Xbx2stiV4fq6YqBc4TkSmwKg+OjnbfRCsVfUmAp5IGM57g6qBnNtd 3mVbc88vFk2PKDqnNN6YMmx6329dEglWAiWvfSAKOoOZXWUlVrX4zFPBfbZ6FmtW6dEc XDbQ== X-Gm-Message-State: APjAAAWRGYy6Ptb3qKMdWJ5jWnlhx3rEu/H9jghYh5k4cYWJBJlh0pT8 6p5LNE0Jy5uNH7Oq8mGnxUwP0A== X-Received: by 2002:a63:1f04:: with SMTP id f4mr87295648pgf.423.1558487716008; Tue, 21 May 2019 18:15:16 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e184sm31756061pfa.169.2019.05.21.18.15.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 18:15:15 -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:15:00 +0800 Message-Id: <20190522011504.19342-1-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.17.1 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 ranther 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. 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