Lines Matching refs:reset_data
93 struct usb_reset_data *reset_data; in sunxi_usb_clk_setup() local
144 reset_data = kzalloc(sizeof(*reset_data), GFP_KERNEL); in sunxi_usb_clk_setup()
145 if (!reset_data) in sunxi_usb_clk_setup()
149 reset_data->clk = of_clk_get(node, 0); in sunxi_usb_clk_setup()
150 if (IS_ERR(reset_data->clk)) { in sunxi_usb_clk_setup()
152 kfree(reset_data); in sunxi_usb_clk_setup()
157 reset_data->reg = reg; in sunxi_usb_clk_setup()
158 reset_data->lock = lock; in sunxi_usb_clk_setup()
159 reset_data->rcdev.nr_resets = __fls(data->reset_mask) + 1; in sunxi_usb_clk_setup()
160 reset_data->rcdev.ops = &sunxi_usb_reset_ops; in sunxi_usb_clk_setup()
161 reset_data->rcdev.of_node = node; in sunxi_usb_clk_setup()
162 reset_controller_register(&reset_data->rcdev); in sunxi_usb_clk_setup()