Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp579115ybm; Mon, 20 May 2019 23:17:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK33/v2u4BFnf0a+bzwUkrJ95bnM727RylejCOYOwG5+9V7hV2n0FA+2vediRlQE5TbPhH X-Received: by 2002:a63:5964:: with SMTP id j36mr79601229pgm.384.1558419426899; Mon, 20 May 2019 23:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558419426; cv=none; d=google.com; s=arc-20160816; b=QAQqa37EEeMaLihOoEfcmdBIeu0qegqe+atQQfUhMdvZpgXUcokDvkYEmaVHpDzOC5 gts5hXvF0f2t/ENu+q3sYbIoYNwD0oBXXoMQ2vTfJT4XcWLvmJB8KPQlKZri8nkgM6ml 8u0tiyPQgUg9DmiouNHqMGImjvACq8LG97zkmhqpRTN+i0Zpg/yYTNGKVFAmdQJ3F+Ao GrjF4smF5/tEAU/vaJatBs1kuY0s17olMKV+97Hsr3Ww3lChrIDEHpK+ChoIjHymCXNr 2L0mH6aTzJKkQ9OpSytkC8UbHzOq0m1ZP24RSe4V4HvuNB53s79wyYfd/VmWfccI0pNA OnRQ== 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=XC+eEUZvBVBb4aYgFpg9LPA+oLBOm7v87SIH5uTfoe8=; b=Ocz4rSIXpn6K8tGRa44CJLThPSJlcVLWBFuLr8+2f6wKszUwJfL2Hwdhrjsqae1bR4 AWNIpROA8XIhMv7NOypd5WwLYwYEifopFYibpURbPUAkQI+72kfFNuhKw3IDILqOuYW7 DhKU/7tT1QdmwWiSIXZSCvO87N1wKrgSVQ2R9YJo6pAZCnUeR8NmVgvQZBxkwb+/U9WN 19y5nByZKnRKjEkyfRtBoxAJTSZRs0J/JdIFASH6B4Lzgityua7LIqzX8kD2ewLbgZ5P xyiGrS0ElJbUiQ84ZwNYqyDNMnkglguDB9fTJE4yLgw1E68XiIc7zT9tmOnFcA0sZMEp 5axg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9Hh46xD; 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 b127si20294162pgc.357.2019.05.20.23.16.51; Mon, 20 May 2019 23:17:06 -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=E9Hh46xD; 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 S1727912AbfEUGPq (ORCPT + 99 others); Tue, 21 May 2019 02:15:46 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:39116 "EHLO mail-pl1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfEUGPq (ORCPT ); Tue, 21 May 2019 02:15:46 -0400 Received: by mail-pl1-f180.google.com with SMTP id g9so7894727plm.6 for ; Mon, 20 May 2019 23:15:45 -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=XC+eEUZvBVBb4aYgFpg9LPA+oLBOm7v87SIH5uTfoe8=; b=E9Hh46xDXyvdhvjiDl/zOYoVTr4s/wcGNu0TQe4rtJhIfrO8WcmFW+N3OSIySzNQdJ VCtYHZnpUg4LPMJpymqQj30ifcO0CNOsuZ4sMi0JevdCLCnjwtiGWqLvKZnhbLLghYis IqQ1km5YEC5V3axSejHr3glQk7F6cGs0xHVLo6HkcetvQOJT6JIqspCOFK6TIKr4IwzM NJH6rvpCF2aSjcV7ATtlX0U6hFpPmVhVvT6CG+6mOJLod5tg5qGM7nwNR0unXqOBx5/w +MSyPym13LYgACIDQ7IM/3rxJZRAkdwUQsOnIwU19lA9bxGXiYWkgrdY152i8g7G4DhW fJJw== 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=XC+eEUZvBVBb4aYgFpg9LPA+oLBOm7v87SIH5uTfoe8=; b=X4HMpNHO+Zsrq107csbVyv5dZkbZ2xiMWkv70I5YNqdCtYqKuKSB3KztoPTiSpSUx3 5iERNo/k+tmvLOZvGj7gxhFhIsqkBMMmxnD8yjZIUFLBtMIkOwJQ/qqLm7JEH8PKa/yG sNGocCeULHLt2w7UXkkh6yvXnQCC7gukeldYTkc4y83jy/Ft2PJWdIaJ3DT7GxHrwRiz ypbrgbAj6vhI7w5vKdeTjEJ4i7ZGJnQd3xjyiIfypOIm1GH1sm+fZZz8fRFedMlI9kcY R0H7Q8vsHacfutWTcBLizXCqkkHcprV6x9BuXVOWQ/7duZls/xETe5C38e6oR7G17RWa QhDg== X-Gm-Message-State: APjAAAWouCTJhAG7bZuay1xz0BuOWinCOyjHTD/Nxjx0szRok+LgdtzP 7wNskH9VUP7/9aPRHlp32kzNFw== X-Received: by 2002:a17:902:7592:: with SMTP id j18mr20820598pll.213.1558419345690; Mon, 20 May 2019 23:15:45 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id k9sm23064259pfa.180.2019.05.20.23.15.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 23:15:44 -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 0/2] Return immediately if sprd_clk_regmap_init() fails Date: Tue, 21 May 2019 14:09:50 +0800 Message-Id: <20190521060952.2949-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 2/2 in this set switchs to use devm_ioremap_resources() instead of of_iomap(), that will make caller programs more simple. Chunyan Zhang (2): clk: sprd: Switch from of_iomap() to devm_ioremap_resource() clk: sprd: Add check for 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