Message ID | 20170727161755.10393-2-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 985856038C for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89C6A28506 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E46F28553; Thu, 27 Jul 2017 16:19:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0EAD5285FD for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mU9Hl4fmLSHbVsejmFmMsoCuxyKLdX46EDcEq3VMq9c=; b=BaEL3HuK3ZW1YYVy0eIRkEGtbK J/ipG1fmfH6XaUYziiFiN9oGrowlMpdul23P9i3vP6j+FB/3xvvIjrBar/QSRHpCoej4OOJzV/2FZ NKYEPF1pw+g8v9EDbmDqzvCwwc6kGQurUSnZsEAqHdnzMOvp4HrI0kKI79GCODSjsH5225e2K47Mt +0P+wqxGyTc9uWcpybcHAPTYNShtZGnkDdx65rw9eVY07WeFhd+1F/WYfff2hZSFHbpzH+4VAHArm 3lOsWLlVdlHjpPkUZrwUAYKQWelmMsqMStyWiLKbLQgTe+Z8ITARWaTKD/0ficlZHLvfdk+hYf/8o oE5WJbOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dalVE-00019J-I0; Thu, 27 Jul 2017 16:19:08 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dalVB-000195-LD for linux-arm-kernel@bombadil.infradead.org; Thu, 27 Jul 2017 16:19:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xoQ0LuIVT8ufsUXNqvLYgYjYRwlblVnMOTqqQwh4e7g=; b=BReqD6hQlgC0G/Slx/qLFPWPs FT9LDh9fKmoJCA8DboSP3IrAx4gZRylOQm3vav7QN4C9pbG+fHJFIkXJpZ5SD3MrsK6UcE4anUp6B LFjbBlVrVqrJoEppjn67QT8UvGffsp/xRgPB3wxM6LAKWEuuCggj1MkIXfl2Hl9BD7je7r8+bUdX+ O8hGPKINu+yaUmY3l7FtFh1lHbeq8Awnvv8KdOfRXo7tKeAC9GLBdMemNMKKbn4NiDnqAq5kNJezH BJQxXyVeiEcVM6nloaxumyZd4/hIaWFRfAGfYN2RzwS5XJMcAwZ7nrIXWy/u4CP8rxwZpkuVQW9rF 1zC/xZ52A==; Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dalUa-0006pQ-TX for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2017 16:18:32 +0000 Received: by mail-wm0-x235.google.com with SMTP id t201so103887631wmt.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 27 Jul 2017 09:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xoQ0LuIVT8ufsUXNqvLYgYjYRwlblVnMOTqqQwh4e7g=; b=v5jFqnWOnzf/3+E+kEtuhOJuYes6eRlMrOvb8cqpvpWP7XjR8qZM+Gr/LBfWd7YE1V U2Edx1q7CwbHWoiuXmUoAnpX3iiJNDjfzTLAXD75WIYjfBFiLP13DRwbixjtHsIVpbaZ uwRNmZjElSgbmM0HTWhvINVb3H5Oj+lR8hvRLp5z5RyJuwdA/emsuWNDvwaVcGVpfZKK /sXlik52ZQfmXD+txoyny5dHiDlinM3ZTDi3fznyQGDKdkp25sOuyGYImb9y73wJy24L bGa5U8GE/g8yWzKvJmAetPqX5PbmWV3TDVF9fklerbylx+SkHivEslpkf52uekAehES0 udug== 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=xoQ0LuIVT8ufsUXNqvLYgYjYRwlblVnMOTqqQwh4e7g=; b=McxcfgagPUTurPscYR4i3z+7JtSl80Rhbr/mXlbwd5EdTv8ORB5eiRCGUEB6TuQIeR 6xohdmUHJiQMTMfXkjFKoaMWOJFUC0eqGV5fsRr1sHE0hRSuoIAacpFE2X7etjxnfRoe 8CHuujwg711/CFu6hVgfTOcpKNzMF8V7hnd2EWUbY4m6gS37rQj0Y9axTfE2rPlnKbhr MohVWWbvyugtKEO9nFYU2fXAhF1PZVBf9BRwmWnF6+qfYSdAkozNCSc+iwYb9vPoRy8x rZpD4eDMNbZcjhjK926uDlfwBMPtZXQgibU3Dijk9hDI3WI9lrHvHM5NYkit2NI2594F ep6g== X-Gm-Message-State: AIVw111OPHbq/O2Jjz41s6CpyuXJ83zh7EPuj7AxQd36A0hbrGzjxMhg FuHFV6uBmfKWKTzI X-Received: by 10.28.33.67 with SMTP id h64mr3570810wmh.87.1501172279728; Thu, 27 Jul 2017 09:17:59 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id w19sm16128125wrb.49.2017.07.27.09.17.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 09:17:59 -0700 (PDT) From: Jerome Brunet <jbrunet@baylibre.com> To: Neil Armstrong <narmstrong@baylibre.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, Kevin Hilman <khilman@baylibre.com> Subject: [PATCH 1/2] clk: meson: meson8b: fix protection against undefined clks Date: Thu, 27 Jul 2017 18:17:54 +0200 Message-Id: <20170727161755.10393-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170727161755.10393-1-jbrunet@baylibre.com> References: <20170727161755.10393-1-jbrunet@baylibre.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, Carlo Caione <carlo@caione.org>, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet <jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index bb3f1de876b1..7629aa09472a 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -585,6 +585,7 @@ static struct clk_hw_onecell_data meson8b_hw_onecell_data = { [CLKID_MPLL0] = &meson8b_mpll0.hw, [CLKID_MPLL1] = &meson8b_mpll1.hw, [CLKID_MPLL2] = &meson8b_mpll2.hw, + [CLK_NR_CLKS] = NULL, }, .num = CLK_NR_CLKS, };
meson8b clock driver gracefully handles case where the clkid is defined but the clock hw pointer is not provided, as long as it is not at the end of the hw_onecell_data array. This patch ensure that the last entries are defined as well to handle this particular case. Fixes: e92f7cca446e ("clk: meson8b: clean up fixed rate clocks") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- drivers/clk/meson/meson8b.c | 1 + 1 file changed, 1 insertion(+)