From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH 1/3] spi/pl022: fix build warnings Date: Tue, 18 Oct 2011 14:43:20 +0530 Message-ID: <4E9D4330.3020107@st.com> References: <1318857142-32127-1-git-send-email-linus.walleij@stericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Jonas ABERG , Linus Walleij , "spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" , Lee Jones , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" To: Linus WALLEIJ Return-path: In-Reply-To: <1318857142-32127-1-git-send-email-linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: > 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; Reviewed-by: Viresh Kumar -- viresh ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct From mboxrd@z Thu Jan 1 00:00:00 1970 From: viresh.kumar@st.com (Viresh Kumar) Date: Tue, 18 Oct 2011 14:43:20 +0530 Subject: [PATCH 1/3] spi/pl022: fix build warnings In-Reply-To: <1318857142-32127-1-git-send-email-linus.walleij@stericsson.com> References: <1318857142-32127-1-git-send-email-linus.walleij@stericsson.com> Message-ID: <4E9D4330.3020107@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: > 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; Reviewed-by: Viresh Kumar -- viresh