* [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions
@ 2011-06-09 17:57 John Crispin
2011-06-09 17:57 ` [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device John Crispin
2011-06-09 18:06 ` [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions Manuel Lauss
0 siblings, 2 replies; 5+ messages in thread
From: John Crispin @ 2011-06-09 17:57 UTC (permalink / raw)
To: Ralf Baechle; +Cc: John Crispin, linux-mips
The 2 functions clk_enable() and clk_disable were missing.
Signed-of-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
---
arch/mips/lantiq/clk.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
index 9456089..aba91db 100644
--- a/arch/mips/lantiq/clk.c
+++ b/arch/mips/lantiq/clk.c
@@ -100,6 +100,17 @@ void clk_put(struct clk *clk)
}
EXPORT_SYMBOL(clk_put);
+int clk_enable(struct clk *clk)
+{
+ /* not used */
+ return 0;
+}
+
+void clk_disable(struct clk *clk)
+{
+ /* not used */
+}
+
static inline u32 ltq_get_counter_resolution(void)
{
u32 res;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device
2011-06-09 17:57 [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions John Crispin
@ 2011-06-09 17:57 ` John Crispin
2011-06-15 17:12 ` Ralf Baechle
2011-06-09 18:06 ` [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions Manuel Lauss
1 sibling, 1 reply; 5+ messages in thread
From: John Crispin @ 2011-06-09 17:57 UTC (permalink / raw)
To: Ralf Baechle; +Cc: John Crispin, linux-mips
The 2 functions add_mtd_partitions and del_mtd_partitions were renamed to
mtd_device_register and mtd_device_unregister.
Signed-of-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
---
drivers/mtd/maps/lantiq-flash.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index a90cabd..7e50896 100644
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -182,7 +182,7 @@ ltq_mtd_probe(struct platform_device *pdev)
parts = ltq_mtd_data->parts;
}
- err = add_mtd_partitions(ltq_mtd->mtd, parts, nr_parts);
+ err = mtd_device_register(ltq_mtd->mtd, parts, nr_parts);
if (err) {
dev_err(&pdev->dev, "failed to add partitions\n");
goto err_destroy;
@@ -208,7 +208,7 @@ ltq_mtd_remove(struct platform_device *pdev)
if (ltq_mtd) {
if (ltq_mtd->mtd) {
- del_mtd_partitions(ltq_mtd->mtd);
+ mtd_device_unregister(ltq_mtd->mtd);
map_destroy(ltq_mtd->mtd);
}
if (ltq_mtd->map->virt)
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions
2011-06-09 17:57 [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions John Crispin
2011-06-09 17:57 ` [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device John Crispin
@ 2011-06-09 18:06 ` Manuel Lauss
2011-06-09 18:09 ` John Crispin
1 sibling, 1 reply; 5+ messages in thread
From: Manuel Lauss @ 2011-06-09 18:06 UTC (permalink / raw)
To: John Crispin; +Cc: Ralf Baechle, linux-mips
On Thu, Jun 9, 2011 at 7:57 PM, John Crispin <blogic@openwrt.org> wrote:
> The 2 functions clk_enable() and clk_disable were missing.
>
> Signed-of-by: John Crispin <blogic@openwrt.org>
> Cc: linux-mips@linux-mips.org
> ---
> arch/mips/lantiq/clk.c | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
> index 9456089..aba91db 100644
> --- a/arch/mips/lantiq/clk.c
> +++ b/arch/mips/lantiq/clk.c
> @@ -100,6 +100,17 @@ void clk_put(struct clk *clk)
> }
> EXPORT_SYMBOL(clk_put);
>
> +int clk_enable(struct clk *clk)
> +{
> + /* not used */
> + return 0;
> +}
> +
> +void clk_disable(struct clk *clk)
> +{
> + /* not used */
> +}
> +
Shouldn't those be exported as well?
Manuel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions
2011-06-09 18:06 ` [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions Manuel Lauss
@ 2011-06-09 18:09 ` John Crispin
0 siblings, 0 replies; 5+ messages in thread
From: John Crispin @ 2011-06-09 18:09 UTC (permalink / raw)
To: Manuel Lauss; +Cc: Ralf Baechle, linux-mips
On 09/06/11 20:06, Manuel Lauss wrote:
> On Thu, Jun 9, 2011 at 7:57 PM, John Crispin <blogic@openwrt.org> wrote:
>
>> The 2 functions clk_enable() and clk_disable were missing.
>>
>> Signed-of-by: John Crispin <blogic@openwrt.org>
>> Cc: linux-mips@linux-mips.org
>> ---
>> arch/mips/lantiq/clk.c | 11 +++++++++++
>> 1 files changed, 11 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
>> index 9456089..aba91db 100644
>> --- a/arch/mips/lantiq/clk.c
>> +++ b/arch/mips/lantiq/clk.c
>> @@ -100,6 +100,17 @@ void clk_put(struct clk *clk)
>> }
>> EXPORT_SYMBOL(clk_put);
>>
>> +int clk_enable(struct clk *clk)
>> +{
>> + /* not used */
>> + return 0;
>> +}
>> +
>> +void clk_disable(struct clk *clk)
>> +{
>> + /* not used */
>> +}
>> +
>>
> Shouldn't those be exported as well?
>
> Manuel
>
you are right they should be.
will resend in a sec, thx !
John
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-15 17:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 17:57 [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions John Crispin
2011-06-09 17:57 ` [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device John Crispin
2011-06-15 17:12 ` Ralf Baechle
2011-06-09 18:06 ` [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions Manuel Lauss
2011-06-09 18:09 ` John Crispin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.