Re: [patch 00/38] 2.6.24-stable review

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Uli Luckas
Date: Sunday, February 24, 2008 - 7:55 am

Hi stable-team,
Could you please include the attached patch [1] to the next stable release.
The patch fixes the otherwise unusable bluetooth uart on pxa25x . The patch is 
written by Russell King [1] who also gave his OK for stable inclusion [2].
The patch is also available as commit a0dd005d1d9f4c3beab52086f3844ef9342d1e67 
to Linus' tree.

Thanks,
Uli

[1] http://marc.info/?l=linux-arm-kernel&m=120298366510315
[2] http://marc.info/?l=linux-arm-kernel&m=120384388411097


diff --git a/arch/arm/mach-pxa/clock.c b/arch/arm/mach-pxa/clock.c
index 83ef5ec..df5ae27 100644
--- a/arch/arm/mach-pxa/clock.c
+++ b/arch/arm/mach-pxa/clock.c
@@ -23,18 +23,27 @@ static LIST_HEAD(clocks);
 static DEFINE_MUTEX(clocks_mutex);
 static DEFINE_SPINLOCK(clocks_lock);

+static struct clk *clk_lookup(struct device *dev, const char *id)
+{
+       struct clk *p;
+
+       list_for_each_entry(p, &clocks, node)
+               if (strcmp(id, p->name) == 0 && p->dev == dev)
+                       return p;
+
+       return NULL;
+}
+
 struct clk *clk_get(struct device *dev, const char *id)
 {
        struct clk *p, *clk = ERR_PTR(-ENOENT);

        mutex_lock(&clocks_mutex);
-       list_for_each_entry(p, &clocks, node) {
-               if (strcmp(id, p->name) == 0 &&
-                   (p->dev == NULL || p->dev == dev)) {
-                       clk = p;
-                       break;
-               }
-       }
+       p = clk_lookup(dev, id);
+       if (!p)
+               p = clk_lookup(NULL, id);
+       if (p)
+               clk = p;
        mutex_unlock(&clocks_mutex);

        return clk;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/38] 2.6.24-stable review, Greg KH, (Fri Feb 22, 5:29 pm)
[patch 08/38] Fix dl2k constants, Greg KH, (Fri Feb 22, 5:30 pm)
[patch 11/38] TC: oops in em_meta, Greg KH, (Fri Feb 22, 5:30 pm)
[patch 32/38] USB: fix pm counter leak in usblp, Greg KH, (Fri Feb 22, 5:31 pm)
[patch 33/38] SCSI: gdth: scan for scsi devices, Greg KH, (Fri Feb 22, 5:31 pm)
Re: [patch 34/38] kbuild: allow -fstack-protector to take ..., Arjan van de Ven, (Fri Feb 22, 5:46 pm)
Re: [patch 33/38] SCSI: gdth: scan for scsi devices, Boaz Harrosh, (Fri Feb 22, 8:02 pm)
Re: [patch 33/38] SCSI: gdth: scan for scsi devices, James Bottomley, (Fri Feb 22, 9:15 pm)
Re: [patch 00/38] 2.6.24-stable review, Chuck Ebbert, (Sat Feb 23, 9:56 am)
Re: [patch 00/38] 2.6.24-stable review, Uli Luckas, (Sun Feb 24, 7:55 am)