mfd: Fix asic3 compilation
map_size was declared from the wrong place. Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
This commit is contained in:
parent
2eedd6047b
commit
6cac6e8489
@ -312,7 +312,6 @@ static int __init asic3_irq_probe(struct platform_device *pdev)
|
|||||||
struct asic3 *asic = platform_get_drvdata(pdev);
|
struct asic3 *asic = platform_get_drvdata(pdev);
|
||||||
unsigned long clksel = 0;
|
unsigned long clksel = 0;
|
||||||
unsigned int irq, irq_base;
|
unsigned int irq, irq_base;
|
||||||
int map_size;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = platform_get_irq(pdev, 0);
|
ret = platform_get_irq(pdev, 0);
|
||||||
@ -534,6 +533,7 @@ static int __init asic3_probe(struct platform_device *pdev)
|
|||||||
struct asic3 *asic;
|
struct asic3 *asic;
|
||||||
struct resource *mem;
|
struct resource *mem;
|
||||||
unsigned long clksel;
|
unsigned long clksel;
|
||||||
|
int map_size;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
asic = kzalloc(sizeof(struct asic3), GFP_KERNEL);
|
asic = kzalloc(sizeof(struct asic3), GFP_KERNEL);
|
||||||
|
Loading…
Reference in New Issue
Block a user