login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
18
Re: [PATCH] asic3: move probe functions into __init section
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Samuel Ortiz <sameo@...>
To: Philipp Zabel <philipp.zabel@...>
Cc: LKML <linux-kernel@...>
Subject:
Re: [PATCH] asic3: move probe functions into __init section
Date: Wednesday, June 18, 2008 - 5:20 pm
Hi Philipp, On Wed, Jun 18, 2008 at 07:32:29PM +0200, Philipp Zabel wrote:
quoted text
> Potentially free some memory by moving the _probe functions into __init. > > Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
This one looks good to me, I'll submit push it to -mm as I'd prefer asic3 patches to go through there first. Cheers, Samuel.
quoted text
> --- > drivers/mfd/asic3.c | 9 ++++----- > 1 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c > index ef8a492..7d3488d 100644 > --- a/drivers/mfd/asic3.c > +++ b/drivers/mfd/asic3.c > @@ -295,7 +295,7 @@ static struct irq_chip asic3_irq_chip = { > .unmask = asic3_unmask_irq, > }; > > -static int asic3_irq_probe(struct platform_device *pdev) > +static int __init asic3_irq_probe(struct platform_device *pdev) > { > struct asic3 *asic = platform_get_drvdata(pdev); > unsigned long clksel = 0; > @@ -443,7 +443,7 @@ void asic3_gpio_set_value(struct asic3 *asic, unsigned gpio, int val) > } > EXPORT_SYMBOL(asic3_gpio_set_value); > > -static int asic3_gpio_probe(struct platform_device *pdev) > +static int __init asic3_gpio_probe(struct platform_device *pdev) > { > struct asic3_platform_data *pdata = pdev->dev.platform_data; > struct asic3 *asic = platform_get_drvdata(pdev); > @@ -482,7 +482,7 @@ static void asic3_gpio_remove(struct platform_device *pdev) > > > /* Core */ > -static int asic3_probe(struct platform_device *pdev) > +static int __init asic3_probe(struct platform_device *pdev) > { > struct asic3_platform_data *pdata = pdev->dev.platform_data; > struct asic3 *asic; > @@ -573,7 +573,6 @@ static struct platform_driver asic3_device_driver = { > .driver = { > .name = "asic3", > }, > - .probe = asic3_probe, > .remove = __devexit_p(asic3_remove), > .shutdown = asic3_shutdown, > }; > @@ -581,7 +580,7 @@ static struct platform_driver asic3_device_driver = { > static int __init asic3_init(void) > { > int retval = 0; > - retval = platform_driver_register(&asic3_device_driver); > + retval = platform_driver_probe(&asic3_device_driver, asic3_probe); > return retval; > } > > -- > 1.5.5.4 > >
--
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] asic3: move probe functions into __init section
, Philipp Zabel
, (Wed Jun 18, 1:32 pm)
Re: [PATCH] asic3: move probe functions into __init section
, Samuel Ortiz
, (Wed Jun 18, 5:20 pm)
Re: [PATCH] asic3: move probe functions into __init section
, pHilipp Zabel
, (Wed Jun 18, 7:26 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Eric Sandeen
Re: [RFC] Heads up on sys_fallocate()
Filippos Papadopoulos
Re: INITIO scsi driver fails to work properly
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
586 guests
online.
Online users
ericd11
Syndicate