Lines Matching defs:pdev
1452 static int pinmux_xway_probe(struct platform_device *pdev)
1459 xway_info.membase[0] = devm_platform_ioremap_resource(pdev, 0);
1463 match = of_match_device(xway_match, &pdev->dev);
1473 xway_info.pads = devm_kcalloc(&pdev->dev,
1480 char *name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "io%d", i);
1491 xway_pctrl_desc.name = dev_name(&pdev->dev);
1505 ret = ltq_pinctrl_register(pdev, &xway_info);
1507 dev_err(&pdev->dev, "Failed to register pinctrl driver\n");
1512 xway_chip.parent = &pdev->dev;
1514 ret = devm_gpiochip_add_data(&pdev->dev, &xway_chip, NULL);
1516 dev_err(&pdev->dev, "Failed to register gpio chip\n");
1530 if (!of_property_read_bool(pdev->dev.of_node, "gpio-ranges")) {
1537 dev_info(&pdev->dev, "Init done\n");