Message ID | 20170727161755.10393-2-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=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 E1D716038C for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D366728506 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C80FC285FD; Thu, 27 Jul 2017 16:19:26 +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 66D8E28506 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 27 Jul 2017 16:19:26 +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=JwTsMc+ZLOqGLwuJtrQYEPsMHj3YQpp2q75ZDEItsSo=; b=l6lnZnSWbyEstLPI12gJIcP4lX jRoSdGMzHhVLwJOhGRQrxmsX+Uz3A0b1MuvSk5hmMcjtK6EEYyiXyFujEnqjq1SbF9lF9jbwMm20B jM6JgXed/nKg1x13JKoHgke2lNDn9KWErZ/o4DRL2tAUp3TmPlnZaOcAFo6AepaFSVCgZhvt2km2D mgBfaX/C1F4Du2HBrh9wPpzjOiYNXxbe4s+U4e7hrBduHSiGuCv1Wzp4Onx5PLPI4e0e7tmPtGgO2 JX/aD2VVJZ4EjG05BfT/Zta3qd/BlwsSNzTHLpe6p5SUL2MTslh7053Urc2tsrJ/w1sbp7mZq+0fB kOiuXp7Q==; 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 1dalVV-0001Nx-Ix; Thu, 27 Jul 2017 16:19:25 +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-000194-LC for linux-amlogic@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-x233.google.com ([2a00:1450:400c:c09::233]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dalUa-0006pP-Tu for linux-amlogic@lists.infradead.org; Thu, 27 Jul 2017 16:18:32 +0000 Received: by mail-wm0-x233.google.com with SMTP id m85so97665456wma.1 for <linux-amlogic@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=KPX7pXIs0wUMDliS5mOBnGR8r5FDdYunG8/mC/YAA8amitnd89zQmnZlS9p/xN75Rh KiXsMvrt8KPMgnDxvBM/DHgd2dhtbygBLxXwEsXtxqCFXN6FGBzLIGU7Uxg93OhCZR/3 eM26SLsz0S6ZwqHrArwPgoYYBkv8fICsTYVHJeGOgFVoKYqLhKeV6pb4IhteNKlxrd09 8Vp66zpUN9LwkxLiNM8H0v3Mvxqiwm4VfMYd4zrKPhhqcSiGLb2WOocbyviiGOND9U37 BB1sCb10QHlMtq3bzRRxiaW8gaIG3nzf8zFvxhFYrbnR7F+0ERfUATJEpxgT/gzOh4Hs GGFw== X-Gm-Message-State: AIVw113dveDslJyscULgN+rsXoSyoReILjEz3NTyS29q5Ns4ytffPtZD /rS5keY2Jqa8Lk/k 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-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-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-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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(+)