Lines Matching refs:dev
147 const struct device_node *of_node = pdev->dev.of_node; in nspire_keypad_probe()
158 keypad = devm_kzalloc(&pdev->dev, sizeof(struct nspire_keypad), in nspire_keypad_probe()
161 dev_err(&pdev->dev, "failed to allocate keypad memory\n"); in nspire_keypad_probe()
170 dev_err(&pdev->dev, "failed to get scan-interval\n"); in nspire_keypad_probe()
177 dev_err(&pdev->dev, "failed to get row-delay\n"); in nspire_keypad_probe()
183 keypad->clk = devm_clk_get(&pdev->dev, NULL); in nspire_keypad_probe()
185 dev_err(&pdev->dev, "unable to get clock\n"); in nspire_keypad_probe()
193 keypad->input = input = devm_input_allocate_device(&pdev->dev); in nspire_keypad_probe()
195 dev_err(&pdev->dev, "failed to allocate input device\n"); in nspire_keypad_probe()
201 dev_err(&pdev->dev, "failed to enable clock\n"); in nspire_keypad_probe()
234 dev_err(&pdev->dev, "building keymap failed\n"); in nspire_keypad_probe()
238 error = devm_request_irq(&pdev->dev, irq, nspire_keypad_irq, 0, in nspire_keypad_probe()
241 dev_err(&pdev->dev, "allocate irq %d failed\n", irq); in nspire_keypad_probe()
247 dev_err(&pdev->dev, in nspire_keypad_probe()
252 dev_dbg(&pdev->dev, in nspire_keypad_probe()