Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

* 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
sh: select ARCH_NO_SYSDEV_OPS.
sh: fix build error in board-sh7757lcr.c
sh: landisk: Remove whitespace
sh: landisk: Remove mv_nr_irqs
sh: sh-sci: Fix double initialization by serial_console_setup
serial: sh-sci: prevent setup of uninitialized serial console
dma: shdma: add checking the DMAOR_AE in sh_dmae_err

+22 -18
+1
arch/sh/Kconfig
··· 24 24 select RTC_LIB 25 25 select GENERIC_ATOMIC64 26 26 select GENERIC_IRQ_SHOW 27 + select ARCH_NO_SYSDEV_OPS 27 28 help 28 29 The SuperH is a RISC processor targeted for use in embedded systems 29 30 and consumer electronics; it was also used in the Sega Dreamcast
+1 -1
arch/sh/boards/board-sh7757lcr.c
··· 17 17 #include <linux/io.h> 18 18 #include <linux/mmc/host.h> 19 19 #include <linux/mmc/sh_mmcif.h> 20 - #include <linux/mfd/sh_mobile_sdhi.h> 20 + #include <linux/mmc/sh_mobile_sdhi.h> 21 21 #include <cpu/sh7757.h> 22 22 #include <asm/sh_eth.h> 23 23 #include <asm/heartbeat.h>
+2 -3
arch/sh/boards/mach-landisk/setup.c
··· 23 23 24 24 static void landisk_power_off(void) 25 25 { 26 - __raw_writeb(0x01, PA_SHUTDOWN); 26 + __raw_writeb(0x01, PA_SHUTDOWN); 27 27 } 28 28 29 29 static struct resource cf_ide_resources[3]; ··· 85 85 86 86 static void __init landisk_setup(char **cmdline_p) 87 87 { 88 - /* LED ON */ 88 + /* LED ON */ 89 89 __raw_writeb(__raw_readb(PA_LED) | 0x03, PA_LED); 90 90 91 91 printk(KERN_INFO "I-O DATA DEVICE, INC. \"LANDISK Series\" support.\n"); ··· 97 97 */ 98 98 static struct sh_machine_vector mv_landisk __initmv = { 99 99 .mv_name = "LANDISK", 100 - .mv_nr_irqs = 72, 101 100 .mv_setup = landisk_setup, 102 101 .mv_init_irq = init_landisk_IRQ, 103 102 };
+6 -1
drivers/dma/shdma.c
··· 865 865 866 866 static irqreturn_t sh_dmae_err(int irq, void *data) 867 867 { 868 - return IRQ_RETVAL(sh_dmae_reset(data)); 868 + struct sh_dmae_device *shdev = data; 869 + 870 + if (dmaor_read(shdev) & DMAOR_AE) 871 + return IRQ_RETVAL(sh_dmae_reset(data)); 872 + else 873 + return IRQ_NONE; 869 874 } 870 875 871 876 static void dmae_do_tasklet(unsigned long data)
+12 -13
drivers/tty/serial/sh-sci.c
··· 1836 1836 sci_port = &sci_ports[co->index]; 1837 1837 port = &sci_port->port; 1838 1838 1839 + /* 1840 + * Refuse to handle uninitialized ports. 1841 + */ 1842 + if (!port->ops) 1843 + return -ENODEV; 1844 + 1839 1845 ret = sci_remap_port(port); 1840 1846 if (unlikely(ret != 0)) 1841 1847 return ret; ··· 1872 1866 .data = &sci_uart_driver, 1873 1867 }; 1874 1868 1875 - static int __init sci_console_init(void) 1876 - { 1877 - register_console(&serial_console); 1878 - return 0; 1879 - } 1880 - console_initcall(sci_console_init); 1881 - 1882 1869 static struct console early_serial_console = { 1883 1870 .name = "early_ttySC", 1884 1871 .write = serial_console_write, ··· 1900 1901 register_console(&early_serial_console); 1901 1902 return 0; 1902 1903 } 1904 + 1905 + #define SCI_CONSOLE (&serial_console) 1906 + 1903 1907 #else 1904 1908 static inline int __devinit sci_probe_earlyprintk(struct platform_device *pdev) 1905 1909 { 1906 1910 return -EINVAL; 1907 1911 } 1908 - #endif /* CONFIG_SERIAL_SH_SCI_CONSOLE */ 1909 1912 1910 - #if defined(CONFIG_SERIAL_SH_SCI_CONSOLE) 1911 - #define SCI_CONSOLE (&serial_console) 1912 - #else 1913 - #define SCI_CONSOLE 0 1914 - #endif 1913 + #define SCI_CONSOLE NULL 1914 + 1915 + #endif /* CONFIG_SERIAL_SH_SCI_CONSOLE */ 1915 1916 1916 1917 static char banner[] __initdata = 1917 1918 KERN_INFO "SuperH SCI(F) driver initialized\n";