Lines Matching refs:mm_gc
829 * @mm_gc: pointer to the of_mm_gpio_chip allocated structure
832 * To use this function you should allocate and fill mm_gc with:
847 struct of_mm_gpio_chip *mm_gc,
851 struct gpio_chip *gc = &mm_gc->gc;
857 mm_gc->regs = of_iomap(np, 0);
858 if (!mm_gc->regs)
863 if (mm_gc->save_regs)
864 mm_gc->save_regs(mm_gc);
866 of_node_put(mm_gc->gc.of_node);
867 mm_gc->gc.of_node = of_node_get(np);
876 iounmap(mm_gc->regs);
887 * @mm_gc: pointer to the of_mm_gpio_chip allocated structure
889 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc)
891 struct gpio_chip *gc = &mm_gc->gc;
893 if (!mm_gc)
897 iounmap(mm_gc->regs);