Lines Matching refs:ucb
51 struct ucb1400 *ucb;
60 ucb = kzalloc(sizeof(struct ucb1400), GFP_KERNEL);
61 if (!ucb) {
66 dev_set_drvdata(dev, ucb);
78 ucb->ucb1400_gpio = platform_device_alloc("ucb1400_gpio", -1);
79 if (!ucb->ucb1400_gpio) {
83 err = platform_device_add_data(ucb->ucb1400_gpio, &ucb_gpio,
87 err = platform_device_add(ucb->ucb1400_gpio);
99 ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1);
100 if (!ucb->ucb1400_ts) {
104 err = platform_device_add_data(ucb->ucb1400_ts, &ucb_ts,
108 err = platform_device_add(ucb->ucb1400_ts);
115 platform_device_put(ucb->ucb1400_ts);
117 platform_device_del(ucb->ucb1400_gpio);
119 platform_device_put(ucb->ucb1400_gpio);
121 kfree(ucb);
128 struct ucb1400 *ucb = dev_get_drvdata(dev);
130 platform_device_unregister(ucb->ucb1400_ts);
131 platform_device_unregister(ucb->ucb1400_gpio);
133 kfree(ucb);