瀏覽代碼

Merge branch 'sh/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6

* 'sh/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
  clocksource: sh_cmt: Fix up bogus shift value.
  arch/sh/mm: Eliminate a double lock
  sh: Fix up IORESOURCE_PCI_FIXED usage in pcibios_fixup_device_resources().
  sh: remove duplicated #include
Linus Torvalds 15 年之前
父節點
當前提交
bf2937695f
共有 4 個文件被更改,包括 2 次插入5 次删除
  1. 0 1
      arch/sh/boards/mach-ecovec24/setup.c
  2. 0 2
      arch/sh/drivers/pci/pci.c
  3. 1 1
      arch/sh/mm/pmb.c
  4. 1 1
      drivers/clocksource/sh_cmt.c

+ 0 - 1
arch/sh/boards/mach-ecovec24/setup.c

@@ -25,7 +25,6 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/sh_msiof.h>
 #include <linux/spi/sh_msiof.h>
 #include <linux/spi/mmc_spi.h>
 #include <linux/spi/mmc_spi.h>
-#include <linux/mmc/host.h>
 #include <linux/input.h>
 #include <linux/input.h>
 #include <linux/input/sh_keysc.h>
 #include <linux/input/sh_keysc.h>
 #include <video/sh_mobile_lcdc.h>
 #include <video/sh_mobile_lcdc.h>

+ 0 - 2
arch/sh/drivers/pci/pci.c

@@ -139,8 +139,6 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
 	for (i = 0; i < PCI_NUM_RESOURCES; i++) {
 	for (i = 0; i < PCI_NUM_RESOURCES; i++) {
 		if (!dev->resource[i].start)
 		if (!dev->resource[i].start)
 			continue;
 			continue;
-		if (dev->resource[i].flags & IORESOURCE_PCI_FIXED)
-			continue;
 		if (dev->resource[i].flags & IORESOURCE_IO)
 		if (dev->resource[i].flags & IORESOURCE_IO)
 			offset = hose->io_offset;
 			offset = hose->io_offset;
 		else if (dev->resource[i].flags & IORESOURCE_MEM)
 		else if (dev->resource[i].flags & IORESOURCE_MEM)

+ 1 - 1
arch/sh/mm/pmb.c

@@ -770,7 +770,7 @@ static void __init pmb_resize(void)
 		spin_unlock_irqrestore(&pmbe->lock, flags);
 		spin_unlock_irqrestore(&pmbe->lock, flags);
 	}
 	}
 
 
-	read_lock(&pmb_rwlock);
+	read_unlock(&pmb_rwlock);
 }
 }
 #endif
 #endif
 
 

+ 1 - 1
drivers/clocksource/sh_cmt.c

@@ -449,7 +449,7 @@ static int sh_cmt_register_clocksource(struct sh_cmt_priv *p,
 	clk_disable(p->clk);
 	clk_disable(p->clk);
 
 
 	/* TODO: calculate good shift from rate and counter bit width */
 	/* TODO: calculate good shift from rate and counter bit width */
-	cs->shift = 10;
+	cs->shift = 0;
 	cs->mult = clocksource_hz2mult(p->rate, cs->shift);
 	cs->mult = clocksource_hz2mult(p->rate, cs->shift);
 
 
 	dev_info(&p->pdev->dev, "used as clock source\n");
 	dev_info(&p->pdev->dev, "used as clock source\n");