* [PATCH] amba-pl022: fixing compilation warning.
@ 2011-01-13 11:54 Viresh Kumar
[not found] ` <59c94a951abb44f6d1fa02f4a0425267053bc4f1.1294919408.git.viresh.kumar-qxv4g6HH51o@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2011-01-13 11:54 UTC (permalink / raw)
To: linus.walleij-0IS4wlFg1OjSUeElwK9/Pw,
grant.likely-s3s/WqlpOiPyB63q8FvJNQ,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: armando.visconti-qxv4g6HH51o, shiraz.hashim-qxv4g6HH51o,
Viresh Kumar
clk_freq is used uninitialized in pl022_setup routine. This patch
fix compilation warning for using uninitialized variable
Signed-off-by: Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>
---
drivers/spi/amba-pl022.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index fb3d1b3..3903ab9 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1799,7 +1799,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;
+ struct ssp_clock_params clk_freq = {0, };
int status = 0;
struct pl022 *pl022 = spi_master_get_devdata(spi->master);
unsigned int bits = spi->bits_per_word;
--
1.7.2.2
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] amba-pl022: fixing compilation warning.
[not found] ` <59c94a951abb44f6d1fa02f4a0425267053bc4f1.1294919408.git.viresh.kumar-qxv4g6HH51o@public.gmane.org>
@ 2011-01-13 13:07 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2011-01-13 13:07 UTC (permalink / raw)
To: Viresh KUMAR
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Armando VISCONTI, Shiraz HASHIM
On 01/13/2011 12:54 PM, Viresh KUMAR wrote:
> clk_freq is used uninitialized in pl022_setup routine. This patch
> fix compilation warning for using uninitialized variable
>
> Signed-off-by: Viresh Kumar<viresh.kumar-qxv4g6HH51o@public.gmane.org>
>
Excellent Viresh, thanks!
Acked-by: Linus Walleij <linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Yours,
Linus Walleij
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-13 13:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 11:54 [PATCH] amba-pl022: fixing compilation warning Viresh Kumar
[not found] ` <59c94a951abb44f6d1fa02f4a0425267053bc4f1.1294919408.git.viresh.kumar-qxv4g6HH51o@public.gmane.org>
2011-01-13 13:07 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).