diff options
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
| -rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 65468f6d7f0..c0a2c26ed5a 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -709,7 +709,7 @@ static int gpmc_setup_irq(void)  		return -EINVAL;  	gpmc_irq_start = irq_alloc_descs(-1, 0, GPMC_NR_IRQ, 0); -	if (IS_ERR_VALUE(gpmc_irq_start)) { +	if (gpmc_irq_start < 0) {  		pr_err("irq_alloc_descs failed\n");  		return gpmc_irq_start;  	} @@ -744,7 +744,7 @@ static int gpmc_setup_irq(void)  	return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL);  } -static __devexit int gpmc_free_irq(void) +static int gpmc_free_irq(void)  {  	int i; @@ -762,7 +762,7 @@ static __devexit int gpmc_free_irq(void)  	return 0;  } -static void __devexit gpmc_mem_exit(void) +static void gpmc_mem_exit(void)  {  	int cs; @@ -774,7 +774,7 @@ static void __devexit gpmc_mem_exit(void)  } -static int __devinit gpmc_mem_init(void) +static int gpmc_mem_init(void)  {  	int cs, rc;  	unsigned long boot_rom_space = 0; @@ -797,7 +797,7 @@ static int __devinit gpmc_mem_init(void)  			continue;  		gpmc_cs_get_memconf(cs, &base, &size);  		rc = gpmc_cs_insert_mem(cs, base, size); -		if (IS_ERR_VALUE(rc)) { +		if (rc < 0) {  			while (--cs >= 0)  				if (gpmc_cs_mem_enabled(cs))  					gpmc_cs_delete_mem(cs); @@ -1121,7 +1121,7 @@ int gpmc_calc_timings(struct gpmc_timings *gpmc_t,  	return 0;  } -static __devinit int gpmc_probe(struct platform_device *pdev) +static int gpmc_probe(struct platform_device *pdev)  {  	int rc;  	u32 l; @@ -1164,20 +1164,20 @@ static __devinit int gpmc_probe(struct platform_device *pdev)  		 GPMC_REVISION_MINOR(l));  	rc = gpmc_mem_init(); -	if (IS_ERR_VALUE(rc)) { +	if (rc < 0) {  		clk_disable_unprepare(gpmc_l3_clk);  		clk_put(gpmc_l3_clk);  		dev_err(gpmc_dev, "failed to reserve memory\n");  		return rc;  	} -	if (IS_ERR_VALUE(gpmc_setup_irq())) +	if (gpmc_setup_irq() < 0)  		dev_warn(gpmc_dev, "gpmc_setup_irq failed\n");  	return 0;  } -static __devexit int gpmc_remove(struct platform_device *pdev) +static int gpmc_remove(struct platform_device *pdev)  {  	gpmc_free_irq();  	gpmc_mem_exit(); @@ -1187,7 +1187,7 @@ static __devexit int gpmc_remove(struct platform_device *pdev)  static struct platform_driver gpmc_driver = {  	.probe		= gpmc_probe, -	.remove		= __devexit_p(gpmc_remove), +	.remove		= gpmc_remove,  	.driver		= {  		.name	= DEVICE_NAME,  		.owner	= THIS_MODULE,  |