Merge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung

* 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
ARM: S3C2410: remove the now empty mach-s3c2410/irq.c
ARM: S3C24XX: Move s3c24xx_irq_syscore_ops to plat-s3c24xx/irq.c
ARM: S3C24xx: Fix missing struct for s3c2410_dma_chan
ARM: SAMSUNG: Remove unused onenand plat functions
ARM: EXYNOS4: Remove compiler warning on exynos4_pwm4_resume
ARM: S5P: Fix compilation error for exynos4_defconfig
ARM: S5P: Should be S3C_VA_USB_HSPHY instead of S5P_VA_XX
ARM: S5P64X0: Fix SPI platform device name
ARM: S5PV210: Fix possible null pointer dereference

+26 -71
+6
arch/arm/mach-exynos4/Kconfig
··· 91 91 help 92 92 Common setup code for the camera interfaces. 93 93 94 + config EXYNOS4_SETUP_USB_PHY 95 + bool 96 + help 97 + Common setup code for USB PHY controller 98 + 94 99 # machine support 95 100 96 101 menu "EXYNOS4 Machines" ··· 181 176 select EXYNOS4_SETUP_I2C3 182 177 select EXYNOS4_SETUP_I2C5 183 178 select EXYNOS4_SETUP_SDHCI 179 + select EXYNOS4_SETUP_USB_PHY 184 180 select SAMSUNG_DEV_PWM 185 181 help 186 182 Machine support for Samsung Mobile NURI Board.
+1 -1
arch/arm/mach-exynos4/Makefile
··· 56 56 obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o 57 57 obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o 58 58 59 - obj-$(CONFIG_USB_SUPPORT) += usb-phy.o 59 + obj-$(CONFIG_EXYNOS4_SETUP_USB_PHY) += setup-usb-phy.o
+1 -1
arch/arm/mach-exynos4/cpu.c
··· 98 98 .length = SZ_4K, 99 99 .type = MT_DEVICE, 100 100 }, { 101 - .virtual = (unsigned long)S5P_VA_USB_HSPHY, 101 + .virtual = (unsigned long)S3C_VA_USB_HSPHY, 102 102 .pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY), 103 103 .length = SZ_4K, 104 104 .type = MT_DEVICE,
+1 -1
arch/arm/mach-exynos4/include/mach/regs-usb-phy.h
··· 11 11 #ifndef __PLAT_S5P_REGS_USB_PHY_H 12 12 #define __PLAT_S5P_REGS_USB_PHY_H 13 13 14 - #define EXYNOS4_HSOTG_PHYREG(x) ((x) + S5P_VA_USB_HSPHY) 14 + #define EXYNOS4_HSOTG_PHYREG(x) ((x) + S3C_VA_USB_HSPHY) 15 15 16 16 #define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00) 17 17 #define PHY1_HSIC_NORMAL_MASK (0xf << 9)
+2
arch/arm/mach-exynos4/time.c
··· 206 206 return (cycle_t) ~__raw_readl(S3C_TIMERREG(0x40)); 207 207 } 208 208 209 + #ifdef CONFIG_PM 209 210 static void exynos4_pwm4_resume(struct clocksource *cs) 210 211 { 211 212 unsigned long pclk; ··· 219 218 exynos4_pwm_init(4, ~0); 220 219 exynos4_pwm_start(4, 1); 221 220 } 221 + #endif 222 222 223 223 struct clocksource pwm_clocksource = { 224 224 .name = "pwm_timer4",
arch/arm/mach-exynos4/usb-phy.c arch/arm/mach-exynos4/setup-usb-phy.c
-1
arch/arm/mach-s3c2410/Makefile
··· 10 10 obj- := 11 11 12 12 obj-$(CONFIG_CPU_S3C2410) += s3c2410.o 13 - obj-$(CONFIG_CPU_S3C2410) += irq.o 14 13 obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o 15 14 obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o 16 15 obj-$(CONFIG_S3C2410_PM) += pm.o sleep.o
-34
arch/arm/mach-s3c2410/irq.c
··· 1 - /* linux/arch/arm/mach-s3c2410/irq.c 2 - * 3 - * Copyright (c) 2006 Simtec Electronics 4 - * Ben Dooks <ben@simtec.co.uk> 5 - * 6 - * This program is free software; you can redistribute it and/or modify 7 - * it under the terms of the GNU General Public License as published by 8 - * the Free Software Foundation; either version 2 of the License, or 9 - * (at your option) any later version. 10 - * 11 - * This program is distributed in the hope that it will be useful, 12 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - * GNU General Public License for more details. 15 - * 16 - * You should have received a copy of the GNU General Public License 17 - * along with this program; if not, write to the Free Software 18 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 - * 20 - */ 21 - 22 - #include <linux/init.h> 23 - #include <linux/module.h> 24 - #include <linux/interrupt.h> 25 - #include <linux/ioport.h> 26 - #include <linux/syscore_ops.h> 27 - 28 - #include <plat/cpu.h> 29 - #include <plat/pm.h> 30 - 31 - struct syscore_ops s3c24xx_irq_syscore_ops = { 32 - .suspend = s3c24xx_irq_suspend, 33 - .resume = s3c24xx_irq_resume, 34 - };
+5 -3
arch/arm/mach-s5pv210/cpufreq.c
··· 101 101 unsigned long tmp, tmp1; 102 102 void __iomem *reg = NULL; 103 103 104 - if (ch == DMC0) 104 + if (ch == DMC0) { 105 105 reg = (S5P_VA_DMC0 + 0x30); 106 - else if (ch == DMC1) 106 + } else if (ch == DMC1) { 107 107 reg = (S5P_VA_DMC1 + 0x30); 108 - else 108 + } else { 109 109 printk(KERN_ERR "Cannot find DMC port\n"); 110 + return; 111 + } 110 112 111 113 /* Find current DRAM frequency */ 112 114 tmp = s5pv210_dram_conf[ch].freq;
+1 -1
arch/arm/plat-s3c24xx/dma.c
··· 1199 1199 1200 1200 #ifdef CONFIG_PM 1201 1201 1202 - static void s3c2410_dma_suspend_chan(s3c2410_dma_chan *cp) 1202 + static void s3c2410_dma_suspend_chan(struct s3c2410_dma_chan *cp) 1203 1203 { 1204 1204 printk(KERN_DEBUG "suspending dma channel %d\n", cp->number); 1205 1205
+6
arch/arm/plat-s3c24xx/irq.c
··· 23 23 #include <linux/interrupt.h> 24 24 #include <linux/ioport.h> 25 25 #include <linux/sysdev.h> 26 + #include <linux/syscore_ops.h> 26 27 27 28 #include <asm/irq.h> 28 29 #include <asm/mach/irq.h> ··· 669 668 670 669 irqdbf("s3c2410: registered interrupt handlers\n"); 671 670 } 671 + 672 + struct syscore_ops s3c24xx_irq_syscore_ops = { 673 + .suspend = s3c24xx_irq_suspend, 674 + .resume = s3c24xx_irq_resume, 675 + };
-12
arch/arm/plat-s5p/dev-onenand.c
··· 15 15 16 16 #include <linux/kernel.h> 17 17 #include <linux/platform_device.h> 18 - #include <linux/mtd/mtd.h> 19 - #include <linux/mtd/onenand.h> 20 18 21 19 #include <mach/irqs.h> 22 20 #include <mach/map.h> ··· 43 45 .num_resources = ARRAY_SIZE(s5p_onenand_resources), 44 46 .resource = s5p_onenand_resources, 45 47 }; 46 - 47 - void s5p_onenand_set_platdata(struct onenand_platform_data *pdata) 48 - { 49 - struct onenand_platform_data *pd; 50 - 51 - pd = kmemdup(pdata, sizeof(struct onenand_platform_data), GFP_KERNEL); 52 - if (!pd) 53 - printk(KERN_ERR "%s: no memory for platform data\n", __func__); 54 - s5p_device_onenand.dev.platform_data = pd; 55 - }
+1 -1
arch/arm/plat-s5p/include/plat/map-s5p.h
··· 39 39 #define S5P_VA_TWD S5P_VA_COREPERI(0x600) 40 40 #define S5P_VA_GIC_DIST S5P_VA_COREPERI(0x1000) 41 41 42 - #define S5P_VA_USB_HSPHY S3C_ADDR(0x02900000) 42 + #define S3C_VA_USB_HSPHY S3C_ADDR(0x02900000) 43 43 44 44 #define VA_VIC(x) (S3C_VA_IRQ + ((x) * 0x10000)) 45 45 #define VA_VIC0 VA_VIC(0)
-12
arch/arm/plat-samsung/dev-onenand.c
··· 13 13 14 14 #include <linux/kernel.h> 15 15 #include <linux/platform_device.h> 16 - #include <linux/mtd/mtd.h> 17 - #include <linux/mtd/onenand.h> 18 16 19 17 #include <mach/irqs.h> 20 18 #include <mach/map.h> ··· 41 43 .num_resources = ARRAY_SIZE(s3c_onenand_resources), 42 44 .resource = s3c_onenand_resources, 43 45 }; 44 - 45 - void s3c_onenand_set_platdata(struct onenand_platform_data *pdata) 46 - { 47 - struct onenand_platform_data *pd; 48 - 49 - pd = kmemdup(pdata, sizeof(struct onenand_platform_data), GFP_KERNEL); 50 - if (!pd) 51 - printk(KERN_ERR "%s: no memory for platform data\n", __func__); 52 - s3c_device_onenand.dev.platform_data = pd; 53 - }
+2 -4
arch/arm/plat-samsung/include/plat/devs.h
··· 75 75 extern struct platform_device s5pc100_device_spi2; 76 76 extern struct platform_device s5pv210_device_spi0; 77 77 extern struct platform_device s5pv210_device_spi1; 78 - extern struct platform_device s5p6440_device_spi0; 79 - extern struct platform_device s5p6440_device_spi1; 80 - extern struct platform_device s5p6450_device_spi0; 81 - extern struct platform_device s5p6450_device_spi1; 78 + extern struct platform_device s5p64x0_device_spi0; 79 + extern struct platform_device s5p64x0_device_spi1; 82 80 83 81 extern struct platform_device s3c_device_hwmon; 84 82