login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
31
Re: [PATCH 1/6] Clocklib: add generic framework for managing clocks.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Dmitry
Subject:
Re: [PATCH 1/6] Clocklib: add generic framework for managing clocks.
Date: Monday, March 31, 2008 - 9:18 am
2008/3/31, Pavel Machek <pavel@ucw.cz>:
quoted text
> > > +int __must_check clk_register(struct clk *clk); > > +void clk_unregister(struct clk *clk); > > +static void __maybe_unused clks_unregister(struct clk **clks, size_t num) > > +{ > > + int i; > > + for (i = num - 1; i >= 0; i++) { > > + clk_unregister(clks[i]); > > + } > > +} > > + > > +static int __must_check __maybe_unused clks_register(struct clk **clks, size_t num) > > +{ > > + int i; > > + int ret; > > + for (i = 0; i < num; i++) { > > + ret = clk_register(clks[i]); > > + if (ret != 0) > > + goto cleanup; > > + } > > + > > + return 0; > > + > > +cleanup: > > + clks_unregister(clks, i); > > + > > + for (i -- ; i >= 0; i--) { > > > "for (i--;"
ack
quoted text
> > > + clk_unregister(clks[i]); > > + } > > + > > + return ret; > > > Hmm, clk_unregister is _very_ similar to clks_unregister....
oops :) -- With best wishes Dmitry --
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 0/6] Clocklib: generic clocks framework
, Dmitry Baryshkov
, (Mon Mar 31, 1:39 am)
[PATCH 1/6] Clocklib: add generic framework for managing c ...
, Dmitry Baryshkov
, (Mon Mar 31, 1:44 am)
[PATCH 2/6] Clocklib: debugfs support
, Dmitry Baryshkov
, (Mon Mar 31, 1:44 am)
[PATCH 3/6] Clocklib: support sa1100 sub-arch.
, Dmitry Baryshkov
, (Mon Mar 31, 1:44 am)
[PATCH 4/6] Clocklib: support ARM pxa sub-arch.
, Dmitry Baryshkov
, (Mon Mar 31, 1:44 am)
[PATCH 5/6] Clocklib: Use correct clock for IrDA on pxa
, Dmitry Baryshkov
, (Mon Mar 31, 1:44 am)
[PATCH 6/6] Clocklib: use correct name for 3,6MHz clock
, Dmitry Baryshkov
, (Mon Mar 31, 1:45 am)
Re: [PATCH 1/6] Clocklib: add generic framework for managi ...
, Pavel Machek
, (Mon Mar 31, 7:55 am)
Re: [PATCH 1/6] Clocklib: add generic framework for managi ...
, Dmitry
, (Mon Mar 31, 9:18 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate