metadata.pl: do not strip whitespaces from multiline data
[openwrt.git] / target / linux / ar7 / patches-2.6.30 / 131-vlynq_fixes.patch
index f68ae4c..1f11627 100644 (file)
@@ -1,5 +1,5 @@
---- a/drivers/vlynq/vlynq.c    2009-05-31 20:41:57.000000000 +0200
-+++ b/drivers/vlynq/vlynq.c    2009-07-28 21:27:52.000000000 +0200
+--- a/drivers/vlynq/vlynq.c
++++ b/drivers/vlynq/vlynq.c
 @@ -14,6 +14,9 @@
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
@@ -18,7 +18,7 @@
  #include <linux/delay.h>
  #include <linux/io.h>
  
-@@ -73,15 +75,11 @@
+@@ -73,15 +75,11 @@ struct vlynq_regs {
        u32 int_device[8];
  };
  
@@ -36,7 +36,7 @@
        printk(KERN_DEBUG "VLYNQ local=%p remote=%p\n",
                        dev->local, dev->remote);
        for (i = 0; i < 32; i++) {
-@@ -95,20 +93,23 @@
+@@ -95,20 +93,23 @@ static void vlynq_dump_regs(struct vlynq
  static void vlynq_dump_mem(u32 *base, int count)
  {
        int i;
@@ -63,7 +63,7 @@
                        return 1;
                else
                        cpu_relax();
-@@ -118,17 +119,15 @@
+@@ -118,17 +119,15 @@ int vlynq_linked(struct vlynq_device *de
  
  static void vlynq_reset(struct vlynq_device *dev)
  {
@@ -85,7 +85,7 @@
  
        /* Give some time for the devices to settle */
        msleep(5);
-@@ -142,9 +141,9 @@
+@@ -142,9 +141,9 @@ static void vlynq_irq_unmask(unsigned in
  
        BUG_ON(!dev);
        virq = irq - dev->irq_start;
@@ -97,7 +97,7 @@
  }
  
  static void vlynq_irq_mask(unsigned int irq)
-@@ -155,9 +154,9 @@
+@@ -155,9 +154,9 @@ static void vlynq_irq_mask(unsigned int 
  
        BUG_ON(!dev);
        virq = irq - dev->irq_start;
  }
  
  static int vlynq_irq_type(unsigned int irq, unsigned int flow_type)
-@@ -168,7 +167,7 @@
+@@ -168,7 +167,7 @@ static int vlynq_irq_type(unsigned int i
  
        BUG_ON(!dev);
        virq = irq - dev->irq_start;
        switch (flow_type & IRQ_TYPE_SENSE_MASK) {
        case IRQ_TYPE_EDGE_RISING:
        case IRQ_TYPE_EDGE_FALLING:
-@@ -187,28 +186,30 @@
+@@ -187,28 +186,30 @@ static int vlynq_irq_type(unsigned int i
        default:
                return -EINVAL;
        }
  }
  
  static irqreturn_t vlynq_irq(int irq, void *dev_id)
-@@ -217,8 +218,8 @@
+@@ -217,8 +218,8 @@ static irqreturn_t vlynq_irq(int irq, vo
        u32 status;
        int virq = 0;
  
  
        if (unlikely(!status))
                spurious_interrupt();
-@@ -262,28 +263,28 @@
+@@ -262,28 +263,28 @@ static int vlynq_setup_irq(struct vlynq_
        if (dev->local_irq == dev->remote_irq) {
                printk(KERN_ERR
                       "%s: local vlynq irq should be different from remote\n",
  
        for (i = dev->irq_start; i <= dev->irq_end; i++) {
                virq = i - dev->irq_start;
-@@ -299,12 +300,13 @@
+@@ -299,12 +300,13 @@ static int vlynq_setup_irq(struct vlynq_
                        set_irq_chip_and_handler(i, &vlynq_irq_chip,
                                                 handle_simple_irq);
                        set_irq_chip_data(i, dev);
                return -EAGAIN;
        }
  
-@@ -328,11 +330,11 @@
+@@ -328,11 +330,11 @@ static int vlynq_device_match(struct dev
                if (ids->id == vdev->dev_id) {
                        vdev->divisor = ids->divisor;
                        vlynq_set_drvdata(vdev, ids);
                        " for VLYNQ device: %08x\n", ids->id, vdev->dev_id);
                ids++;
        }
-@@ -346,8 +348,7 @@
+@@ -346,8 +348,7 @@ static int vlynq_device_probe(struct dev
        struct vlynq_device_id *id = vlynq_get_drvdata(vdev);
        int result = -ENODEV;
  
                result = drv->probe(vdev, id);
        if (result)
                put_device(dev);
-@@ -357,9 +358,10 @@
+@@ -357,9 +358,10 @@ static int vlynq_device_probe(struct dev
  static int vlynq_device_remove(struct device *dev)
  {
        struct vlynq_driver *drv = to_vlynq_driver(dev->driver);
        return 0;
  }
  
-@@ -377,6 +379,14 @@
+@@ -377,6 +379,14 @@ void vlynq_unregister_driver(struct vlyn
  }
  EXPORT_SYMBOL(vlynq_unregister_driver);
  
  static int __vlynq_try_remote(struct vlynq_device *dev)
  {
        int i;
-@@ -389,21 +399,21 @@
+@@ -389,21 +399,21 @@ static int __vlynq_try_remote(struct vly
                if (!vlynq_linked(dev))
                        break;
  
                        dev->divisor = i;
                        return 0;
                } else {
-@@ -414,26 +424,33 @@
+@@ -414,26 +424,33 @@ static int __vlynq_try_remote(struct vly
        return -ENODEV;
  }
  
                        dev->divisor = i;
                        return 0;
                } else {
-@@ -444,27 +461,33 @@
+@@ -444,27 +461,33 @@ static int __vlynq_try_local(struct vlyn
        return -ENODEV;
  }
  
        return -ENODEV;
  }
  
-@@ -481,10 +504,10 @@
+@@ -481,10 +504,10 @@ static int __vlynq_enable_device(struct 
        case vlynq_div_external:
        case vlynq_div_auto:
                /* When the device is brought from reset it should have clock
                   VLYNQ_CTRL_CLOCK_INT) {
                        if (!__vlynq_try_remote(dev) ||
                                !__vlynq_try_local(dev)  ||
-@@ -497,31 +520,43 @@
+@@ -497,31 +520,43 @@ static int __vlynq_enable_device(struct 
                                return 0;
                }
                break;
                        return 0;
                }
                break;
-@@ -568,12 +603,10 @@
+@@ -568,12 +603,10 @@ int vlynq_set_local_mapping(struct vlynq
        if (!dev->enabled)
                return -ENXIO;
  
        }
        return 0;
  }
-@@ -587,12 +620,10 @@
+@@ -587,12 +620,10 @@ int vlynq_set_remote_mapping(struct vlyn
        if (!dev->enabled)
                return -ENXIO;
  
        }
        return 0;
  }
-@@ -662,8 +693,7 @@
+@@ -662,8 +693,7 @@ static int vlynq_probe(struct platform_d
        dev->id = pdev->id;
        dev->dev.bus = &vlynq_bus_type;
        dev->dev.parent = &pdev->dev;
        dev->dev.platform_data = pdev->dev.platform_data;
        dev->dev.release = vlynq_device_release;
  
-@@ -673,9 +703,9 @@
+@@ -673,9 +703,9 @@ static int vlynq_probe(struct platform_d
        dev->mem_end = mem_res->end;
  
        len = regs_res->end - regs_res->start;
                result = -ENXIO;
                goto fail_request;
        }
-@@ -683,7 +713,7 @@
+@@ -683,7 +713,7 @@ static int vlynq_probe(struct platform_d
        dev->local = ioremap(regs_res->start, len);
        if (!dev->local) {
                printk(KERN_ERR "%s: Can't remap vlynq registers\n",
                result = -ENXIO;
                goto fail_remap;
        }
-@@ -702,14 +732,14 @@
+@@ -702,14 +732,14 @@ static int vlynq_probe(struct platform_d
        platform_set_drvdata(pdev, dev);
  
        printk(KERN_INFO "%s: regs 0x%p, irq %d, mem 0x%p\n",
This page took 0.029653 seconds and 4 git commands to generate.