From: robert.jarzmik@free.fr (Robert Jarzmik)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 2/4] arm: pxa: move init functions into generic.h
Date: Mon, 29 Sep 2014 19:48:45 +0200 [thread overview]
Message-ID: <87y4t2b9mq.fsf@free.fr> (raw)
In-Reply-To: <3547658.YqqGlbv966@wuerfel> (Arnd Bergmann's message of "Mon, 29 Sep 2014 18:08:39 +0200")
Arnd Bergmann <arnd@arndb.de> writes:
> On Monday 29 September 2014 08:51:46 Robert Jarzmik wrote:
>>
>> #ifdef CONFIG_PXA25x
>> +#define pxa25x_handle_irq icip_handle_irq
>> extern unsigned pxa25x_get_clk_frequency_khz(int);
>> +extern void __init pxa25x_init_irq(void);
>> +extern void __init pxa25x_map_io(void);
>> +#ifdef CONFIG_CPU_PXA26x
>> +extern void __init pxa26x_init_irq(void);
>> +#endif
>> #else
>> #define pxa25x_get_clk_frequency_khz(x) (0)
>> #endif
>>
>
> It's better to add the declarations outside of the #ifdef. I believe
> the existing #ifdef is meant to provide a dummy alternative, but you
> don't actually want that for the other declarations, so just add them
> to a globally visible location.
OK for v2.
I will also put a note on my todo list to kill them. Their remaining purpose is
to provide frequency read accessor for get_clk_frequency(). Once the clock
framework will be done for all PXAs, get_clk_frequency() will become a simple
clk_get_rate(), or even better will be removed if I manage to transform viper.c
and the cpu frequency driver.
Cheers.
--
Robert
next prev parent reply other threads:[~2014-09-29 17:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 6:51 [PATCH v1 1/4] arm: pxa: add device-tree irq init for pxa27x Robert Jarzmik
2014-09-29 6:51 ` [PATCH v1 2/4] arm: pxa: move init functions into generic.h Robert Jarzmik
2014-09-29 16:08 ` Arnd Bergmann
2014-09-29 17:48 ` Robert Jarzmik [this message]
2014-09-29 6:51 ` [PATCH v1 3/4] arm: pxa: remove unecessary includes from pxa-dt Robert Jarzmik
2014-09-29 16:09 ` Arnd Bergmann
2014-09-29 6:51 ` [PATCH v1 4/4] arm: pxa: add pxa27x device-tree support Robert Jarzmik
2014-09-29 16:12 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4t2b9mq.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox