From patchwork Sat Dec 3 00:37:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinson Lee X-Patchwork-Id: 9459451 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: 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 0E05B6074E for ; Sat, 3 Dec 2016 01:01:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F420028599 for ; Sat, 3 Dec 2016 01:01:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E759C285A1; Sat, 3 Dec 2016 01:01:47 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F18E28599 for ; Sat, 3 Dec 2016 01:01:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753063AbcLCBBq (ORCPT ); Fri, 2 Dec 2016 20:01:46 -0500 Received: from gabe.freedesktop.org ([131.252.210.177]:49166 "EHLO gabe.freedesktop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754189AbcLCBBq (ORCPT ); Fri, 2 Dec 2016 20:01:46 -0500 X-Greylist: delayed 1470 seconds by postgrey-1.27 at vger.kernel.org; Fri, 02 Dec 2016 20:01:46 EST Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 29E6C6E013; Sat, 3 Dec 2016 00:37:16 +0000 (UTC) Received: by annarchy.freedesktop.org (Postfix, from userid 3222) id 2695D18251; Sat, 3 Dec 2016 00:37:16 +0000 (UTC) From: Vinson Lee To: linux-clk@vger.kernel.org Cc: Masahiro Yamada , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] clk: uniphier: Fix build with gcc-4.4. Date: Sat, 3 Dec 2016 00:37:16 +0000 Message-Id: <1480725436-9628-1-git-send-email-vlee@freedesktop.org> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP gcc-4.4 has issues with anonymous unions in initializers. CC drivers/clk/uniphier/clk-uniphier-sys.o drivers/clk/uniphier/clk-uniphier-sys.c:45: error: unknown field ‘factor’ specified in initializer Fixes: 1574d5722636 ("clk: uniphier: remove unneeded member name for union") Signed-off-by: Vinson Lee --- drivers/clk/uniphier/clk-uniphier-mio.c | 4 ++-- drivers/clk/uniphier/clk-uniphier.h | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-mio.c b/drivers/clk/uniphier/clk-uniphier-mio.c index 4974d38..7441eeb 100644 --- a/drivers/clk/uniphier/clk-uniphier-mio.c +++ b/drivers/clk/uniphier/clk-uniphier-mio.c @@ -30,7 +30,7 @@ .name = "sd" #ch "-sel", \ .type = UNIPHIER_CLK_TYPE_MUX, \ .idx = -1, \ - .mux = { \ + { .mux = { \ .parent_names = { \ "sd-44m", \ "sd-33m", \ @@ -63,7 +63,7 @@ 0x00001200, \ 0x00001300, \ }, \ - }, \ + } }, \ }, \ UNIPHIER_CLK_GATE("sd" #ch, (_idx), "sd" #ch "-sel", 0x20 + 0x200 * (ch), 8) diff --git a/drivers/clk/uniphier/clk-uniphier.h b/drivers/clk/uniphier/clk-uniphier.h index 81d7e5c..8735a7d 100644 --- a/drivers/clk/uniphier/clk-uniphier.h +++ b/drivers/clk/uniphier/clk-uniphier.h @@ -81,12 +81,12 @@ struct uniphier_clk_data { .name = (_name), \ .type = UNIPHIER_CLK_TYPE_CPUGEAR, \ .idx = (_idx), \ - .cpugear = { \ + { .cpugear = { \ .parent_names = { __VA_ARGS__ }, \ .num_parents = (_num_parents), \ .regbase = (_regbase), \ .mask = (_mask) \ - }, \ + } }, \ } #define UNIPHIER_CLK_FACTOR(_name, _idx, _parent, _mult, _div) \ @@ -94,11 +94,11 @@ struct uniphier_clk_data { .name = (_name), \ .type = UNIPHIER_CLK_TYPE_FIXED_FACTOR, \ .idx = (_idx), \ - .factor = { \ + { .factor = { \ .parent_name = (_parent), \ .mult = (_mult), \ .div = (_div), \ - }, \ + } }, \ } #define UNIPHIER_CLK_GATE(_name, _idx, _parent, _reg, _bit) \ @@ -106,11 +106,11 @@ struct uniphier_clk_data { .name = (_name), \ .type = UNIPHIER_CLK_TYPE_GATE, \ .idx = (_idx), \ - .gate = { \ + { .gate = { \ .parent_name = (_parent), \ .reg = (_reg), \ .bit = (_bit), \ - }, \ + } }, \ } #define UNIPHIER_CLK_DIV(parent, div) \