From patchwork Mon Oct 17 13:12:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 4709 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 91DB123E03 for ; Mon, 17 Oct 2011 13:12:49 +0000 (UTC) Received: from mail-yx0-f179.google.com (mail-yx0-f179.google.com [209.85.213.179]) by fiordland.canonical.com (Postfix) with ESMTP id 59654A188C2 for ; Mon, 17 Oct 2011 13:12:49 +0000 (UTC) Received: by yxn35 with SMTP id 35so4349166yxn.24 for ; Mon, 17 Oct 2011 06:12:48 -0700 (PDT) Received: by 10.223.4.215 with SMTP id 23mr6501504fas.8.1318857168451; Mon, 17 Oct 2011 06:12:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs7850lak; Mon, 17 Oct 2011 06:12:48 -0700 (PDT) Received: by 10.14.35.81 with SMTP id t57mr1183608eea.65.1318857167523; Mon, 17 Oct 2011 06:12:47 -0700 (PDT) Received: from eu1sys200aog114.obsmtp.com (eu1sys200aog114.obsmtp.com. [207.126.144.137]) by mx.google.com with SMTP id x15si2672491eea.215.2011.10.17.06.12.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 06:12:47 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.137 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.137; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.137 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob114.postini.com ([207.126.147.11]) with SMTP; Mon, 17 Oct 2011 13:12:47 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 11A85C7; Mon, 17 Oct 2011 13:03:58 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 41F88A5D; Mon, 17 Oct 2011 13:12:27 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 7338D24C07C; Mon, 17 Oct 2011 15:12:19 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 17 Oct 2011 15:12:26 +0200 From: Linus Walleij To: Grant Likely , Cc: , Viresh Kumar , Lee Jones , Jonas Aaberg , Linus Walleij Subject: [PATCH 1/3] spi/pl022: fix build warnings Date: Mon, 17 Oct 2011 15:12:22 +0200 Message-ID: <1318857142-32127-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Jonas Aaberg The driver build complains with newer compilers unless you initialize this struct properly. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij --- drivers/spi/spi-pl022.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index debdaeb..91700bb 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1930,7 +1930,7 @@ static int pl022_setup(struct spi_device *spi) { struct pl022_config_chip const *chip_info; struct chip_data *chip; - struct ssp_clock_params clk_freq = {0, }; + struct ssp_clock_params clk_freq = { .cpsdvsr = 0, .scr = 0}; int status = 0; struct pl022 *pl022 = spi_master_get_devdata(spi->master); unsigned int bits = spi->bits_per_word;