[PATCH 01/74] ST SPEAr: Padmux code Updated

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Sep 6 18:49:01 EDT 2010


>  
> -void spear300_pmx_init(void)
> -{
> -	spear_pmx_init(&pmx_driver, SPEAR300_SOC_CONFIG_BASE,
> +	/* pmx initialization */
> +	pmx_driver.base = ioremap(SPEAR300_SOC_CONFIG_BASE,
>  			SPEAR300_SOC_CONFIG_SIZE);
> +	if (pmx_driver.base) {
> +		ret = pmx_register(&pmx_driver);
> +		if (ret)
> +			printk(KERN_ERR "padmux: registeration failed. err no"
> +					": %d\n", ret);
> +		iounmap(pmx_driver.base);
why unmap it?

Best Regards,
J.



More information about the linux-arm-kernel mailing list