diff options
Diffstat (limited to 'arch/unicore32/kernel')
| -rw-r--r-- | arch/unicore32/kernel/clock.c | 8 | ||||
| -rw-r--r-- | arch/unicore32/kernel/early_printk.c | 8 | ||||
| -rw-r--r-- | arch/unicore32/kernel/ksyms.c | 41 | ||||
| -rw-r--r-- | arch/unicore32/kernel/ksyms.h | 2 | ||||
| -rw-r--r-- | arch/unicore32/kernel/module.c | 11 | ||||
| -rw-r--r-- | arch/unicore32/kernel/process.c | 1 | ||||
| -rw-r--r-- | arch/unicore32/kernel/puv3-nb0916.c | 1 | ||||
| -rw-r--r-- | arch/unicore32/kernel/setup.c | 4 | 
8 files changed, 16 insertions, 60 deletions
diff --git a/arch/unicore32/kernel/clock.c b/arch/unicore32/kernel/clock.c index 18d4563e6fa..b1ca775f6f6 100644 --- a/arch/unicore32/kernel/clock.c +++ b/arch/unicore32/kernel/clock.c @@ -179,7 +179,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)  	}  #ifdef CONFIG_CPU_FREQ  	if (clk == &clk_mclk_clk) { -		u32 pll_rate, divstatus = PM_DIVSTATUS; +		u32 pll_rate, divstatus = readl(PM_DIVSTATUS);  		int ret, i;  		/* lookup mclk_clk_table */ @@ -201,10 +201,10 @@ int clk_set_rate(struct clk *clk, unsigned long rate)  				/ (((divstatus & 0x0000f000) >> 12) + 1);  		/* set pll sys cfg reg. */ -		PM_PLLSYSCFG = pll_rate; +		writel(pll_rate, PM_PLLSYSCFG); -		PM_PMCR = PM_PMCR_CFBSYS; -		while ((PM_PLLDFCDONE & PM_PLLDFCDONE_SYSDFC) +		writel(PM_PMCR_CFBSYS, PM_PMCR); +		while ((readl(PM_PLLDFCDONE) & PM_PLLDFCDONE_SYSDFC)  				!= PM_PLLDFCDONE_SYSDFC)  			udelay(100);  			/* about 1ms */ diff --git a/arch/unicore32/kernel/early_printk.c b/arch/unicore32/kernel/early_printk.c index 9be0d5d02a9..f2f6323c8d6 100644 --- a/arch/unicore32/kernel/early_printk.c +++ b/arch/unicore32/kernel/early_printk.c @@ -35,17 +35,11 @@ static struct console early_ocd_console = {  static int __init setup_early_printk(char *buf)  { -	int keep_early; -  	if (!buf || early_console)  		return 0; -	if (strstr(buf, "keep")) -		keep_early = 1; -  	early_console = &early_ocd_console; - -	if (keep_early) +	if (strstr(buf, "keep"))  		early_console->flags &= ~CON_BOOT;  	else  		early_console->flags |= CON_BOOT; diff --git a/arch/unicore32/kernel/ksyms.c b/arch/unicore32/kernel/ksyms.c index d285d71cbe3..0323528a80f 100644 --- a/arch/unicore32/kernel/ksyms.c +++ b/arch/unicore32/kernel/ksyms.c @@ -23,41 +23,15 @@  #include "ksyms.h" +EXPORT_SYMBOL(find_first_bit); +EXPORT_SYMBOL(find_first_zero_bit);  EXPORT_SYMBOL(find_next_zero_bit);  EXPORT_SYMBOL(find_next_bit); -EXPORT_SYMBOL(__backtrace); -  	/* platform dependent support */  EXPORT_SYMBOL(__udelay);  EXPORT_SYMBOL(__const_udelay); -	/* networking */ -EXPORT_SYMBOL(csum_partial); -EXPORT_SYMBOL(csum_partial_copy_from_user); -EXPORT_SYMBOL(csum_partial_copy_nocheck); -EXPORT_SYMBOL(__csum_ipv6_magic); - -	/* io */ -#ifndef __raw_readsb -EXPORT_SYMBOL(__raw_readsb); -#endif -#ifndef __raw_readsw -EXPORT_SYMBOL(__raw_readsw); -#endif -#ifndef __raw_readsl -EXPORT_SYMBOL(__raw_readsl); -#endif -#ifndef __raw_writesb -EXPORT_SYMBOL(__raw_writesb); -#endif -#ifndef __raw_writesw -EXPORT_SYMBOL(__raw_writesw); -#endif -#ifndef __raw_writesl -EXPORT_SYMBOL(__raw_writesl); -#endif -  	/* string / mem functions */  EXPORT_SYMBOL(strchr);  EXPORT_SYMBOL(strrchr); @@ -76,23 +50,12 @@ EXPORT_SYMBOL(__copy_from_user);  EXPORT_SYMBOL(__copy_to_user);  EXPORT_SYMBOL(__clear_user); -EXPORT_SYMBOL(__get_user_1); -EXPORT_SYMBOL(__get_user_2); -EXPORT_SYMBOL(__get_user_4); - -EXPORT_SYMBOL(__put_user_1); -EXPORT_SYMBOL(__put_user_2); -EXPORT_SYMBOL(__put_user_4); -EXPORT_SYMBOL(__put_user_8); -  EXPORT_SYMBOL(__ashldi3);  EXPORT_SYMBOL(__ashrdi3);  EXPORT_SYMBOL(__divsi3);  EXPORT_SYMBOL(__lshrdi3);  EXPORT_SYMBOL(__modsi3); -EXPORT_SYMBOL(__muldi3);  EXPORT_SYMBOL(__ucmpdi2);  EXPORT_SYMBOL(__udivsi3);  EXPORT_SYMBOL(__umodsi3); -EXPORT_SYMBOL(__bswapsi2); diff --git a/arch/unicore32/kernel/ksyms.h b/arch/unicore32/kernel/ksyms.h index 185cdc712d0..31472ad9467 100644 --- a/arch/unicore32/kernel/ksyms.h +++ b/arch/unicore32/kernel/ksyms.h @@ -8,8 +8,6 @@ extern void __ashrdi3(void);  extern void __divsi3(void);  extern void __lshrdi3(void);  extern void __modsi3(void); -extern void __muldi3(void);  extern void __ucmpdi2(void);  extern void __udivsi3(void);  extern void __umodsi3(void); -extern void __bswapsi2(void); diff --git a/arch/unicore32/kernel/module.c b/arch/unicore32/kernel/module.c index 16bd1495b93..dc41f6dfedb 100644 --- a/arch/unicore32/kernel/module.c +++ b/arch/unicore32/kernel/module.c @@ -24,14 +24,9 @@  void *module_alloc(unsigned long size)  { -	struct vm_struct *area; - -	size = PAGE_ALIGN(size); -	area = __get_vm_area(size, VM_ALLOC, MODULES_VADDR, MODULES_END); -	if (!area) -		return NULL; - -	return __vmalloc_area(area, GFP_KERNEL, PAGE_KERNEL_EXEC); +	return __vmalloc_node_range(size, 1, MODULES_VADDR, MODULES_END, +				GFP_KERNEL, PAGE_KERNEL_EXEC, NUMA_NO_NODE, +				__builtin_return_address(0));  }  int diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c index 778ebba8082..b008e996146 100644 --- a/arch/unicore32/kernel/process.c +++ b/arch/unicore32/kernel/process.c @@ -60,6 +60,7 @@ void machine_halt(void)   * Function pointers to optional machine specific functions   */  void (*pm_power_off)(void) = NULL; +EXPORT_SYMBOL(pm_power_off);  void machine_power_off(void)  { diff --git a/arch/unicore32/kernel/puv3-nb0916.c b/arch/unicore32/kernel/puv3-nb0916.c index 181108b8ecc..0c6618e7189 100644 --- a/arch/unicore32/kernel/puv3-nb0916.c +++ b/arch/unicore32/kernel/puv3-nb0916.c @@ -54,6 +54,7 @@ static struct platform_pwm_backlight_data nb0916_backlight_data = {  	.max_brightness	= 100,  	.dft_brightness	= 100,  	.pwm_period_ns	= 70 * 1024, +	.enable_gpio	= -1,  };  static struct gpio_keys_button nb0916_gpio_keys[] = { diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c index 87adbf5ebfe..3fa317f9612 100644 --- a/arch/unicore32/kernel/setup.c +++ b/arch/unicore32/kernel/setup.c @@ -53,6 +53,10 @@ struct stack {  static struct stack stacks[NR_CPUS]; +#ifdef CONFIG_VGA_CONSOLE +struct screen_info screen_info; +#endif +  char elf_platform[ELF_PLATFORM_SIZE];  EXPORT_SYMBOL(elf_platform);  | 
