login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
4
Re: [PATCH] pxa2xx_spi.c: remove redundant initialization, spelling fix, more verbose error
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
David Brownell <david-b@...>
To: Guennadi Liakhovetski <g.liakhovetski@...>
Cc: <linux-kernel@...>, <spi-devel-general@...>
Subject:
Re: [PATCH] pxa2xx_spi.c: remove redundant initialization, spelling fix, more verbose error
Date: Wednesday, June 4, 2008 - 3:32 pm
On Wednesday 04 June 2008, Guennadi Liakhovetski wrote:
quoted text
> Minor fixes: remove redundant local variable initialization, fix "can not" to > what I _think_ is a preferred spelling, output IRQ number if requesting it > failed. > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
quoted text
> > --- > > Nothing urgent, just, please, queue it for 2.6.27. Thanks > > diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c > index 0c452c4..4cf72e9 100644 > --- a/drivers/spi/pxa2xx_spi.c > +++ b/drivers/spi/pxa2xx_spi.c > @@ -1342,9 +1342,9 @@ static int __init pxa2xx_spi_probe(struct platform_device *pdev) > struct device *dev = &pdev->dev; > struct pxa2xx_spi_master *platform_info; > struct spi_master *master; > - struct driver_data *drv_data = NULL; > + struct driver_data *drv_data; > struct ssp_device *ssp; > - int status = 0; > + int status; > > platform_info = dev->platform_data; > > @@ -1357,7 +1357,7 @@ static int __init pxa2xx_spi_probe(struct platform_device *pdev) > /* Allocate master with space for drv_data and null dma buffer */ > master = spi_alloc_master(dev, sizeof(struct driver_data) + 16); > if (!master) { > - dev_err(&pdev->dev, "can not alloc spi_master\n"); > + dev_err(&pdev->dev, "cannot alloc spi_master\n"); > ssp_free(ssp); > return -ENOMEM; > } > @@ -1393,7 +1393,7 @@ static int __init pxa2xx_spi_probe(struct platform_device *pdev) > > status = request_irq(ssp->irq, ssp_int, 0, dev->bus_id, drv_data); > if (status < 0) { > - dev_err(&pdev->dev, "can not get IRQ\n"); > + dev_err(&pdev->dev, "cannot get IRQ %d\n", ssp->irq); > goto out_error_master_alloc; > } > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] pxa2xx_spi.c: remove redundant initialization, spell...
, Guennadi Liakhovetski
, (Wed Jun 4, 10:47 am)
Re: [PATCH] pxa2xx_spi.c: remove redundant initialization, s...
, David Brownell
, (Wed Jun 4, 3:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Srivatsa Vaddagiri
containers (was Re: -mm merge plans for 2.6.23)
Benjamin Herrenschmidt
Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Patrick McHardy
Re: [GIT]: Networking
Gerrit Renker
[PATCH 6/7] [CCID-2/3]: Fix sparse warnings
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
931 guests
online.
Online users
maheshdm
strcmp
Syndicate