static int wmt_kpad_remove(struct platform_device *pdev) { DPRINTK("Start\n"); kpad_close(kpad_dev); kpad.ref = 0; kpad.irq = 0; DPRINTK("End\n"); return 0; }
static int wmt_kpad_remove(struct platform_device *pdev) { DPRINTK("Start\n"); kpad_close(kpad_dev); /* * Free allocated resource */ //kfree(kpad.res); //kpad.res = NULL; //if (kpad.regs) { // iounmap(kpad.regs); // kpad.regs = NULL; //} kpad.ref = 0; kpad.irq = 0; memset(&kpad.ints, 0, KPAD_INTS_SIZE); DPRINTK("End\n"); return 0; }