diff options
Diffstat (limited to 'arch/powerpc/sysdev/cpm_common.c')
| -rw-r--r-- | arch/powerpc/sysdev/cpm_common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/cpm_common.c b/arch/powerpc/sysdev/cpm_common.c index 88b9812c854f..2b69aa0315b3 100644 --- a/arch/powerpc/sysdev/cpm_common.c +++ b/arch/powerpc/sysdev/cpm_common.c | |||
| @@ -325,7 +325,6 @@ int cpm2_gpiochip_add32(struct device_node *np) | |||
| 325 | { | 325 | { |
| 326 | struct cpm2_gpio32_chip *cpm2_gc; | 326 | struct cpm2_gpio32_chip *cpm2_gc; |
| 327 | struct of_mm_gpio_chip *mm_gc; | 327 | struct of_mm_gpio_chip *mm_gc; |
| 328 | struct of_gpio_chip *of_gc; | ||
| 329 | struct gpio_chip *gc; | 328 | struct gpio_chip *gc; |
| 330 | 329 | ||
| 331 | cpm2_gc = kzalloc(sizeof(*cpm2_gc), GFP_KERNEL); | 330 | cpm2_gc = kzalloc(sizeof(*cpm2_gc), GFP_KERNEL); |
| @@ -335,11 +334,9 @@ int cpm2_gpiochip_add32(struct device_node *np) | |||
| 335 | spin_lock_init(&cpm2_gc->lock); | 334 | spin_lock_init(&cpm2_gc->lock); |
| 336 | 335 | ||
| 337 | mm_gc = &cpm2_gc->mm_gc; | 336 | mm_gc = &cpm2_gc->mm_gc; |
| 338 | of_gc = &mm_gc->of_gc; | 337 | gc = &mm_gc->gc; |
| 339 | gc = &of_gc->gc; | ||
| 340 | 338 | ||
| 341 | mm_gc->save_regs = cpm2_gpio32_save_regs; | 339 | mm_gc->save_regs = cpm2_gpio32_save_regs; |
| 342 | of_gc->gpio_cells = 2; | ||
| 343 | gc->ngpio = 32; | 340 | gc->ngpio = 32; |
| 344 | gc->direction_input = cpm2_gpio32_dir_in; | 341 | gc->direction_input = cpm2_gpio32_dir_in; |
| 345 | gc->direction_output = cpm2_gpio32_dir_out; | 342 | gc->direction_output = cpm2_gpio32_dir_out; |
