Lines Matching defs:pdev
1704 static int pinmux_xway_probe(struct platform_device *pdev)
1711 xway_info.membase[0] = devm_platform_ioremap_resource(pdev, 0);
1715 match = of_match_device(xway_match, &pdev->dev);
1725 xway_info.pads = devm_kcalloc(&pdev->dev,
1732 char *name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "io%d", i);
1743 xway_pctrl_desc.name = dev_name(&pdev->dev);
1757 ret = ltq_pinctrl_register(pdev, &xway_info);
1759 dev_err(&pdev->dev, "Failed to register pinctrl driver\n");
1764 xway_chip.parent = &pdev->dev;
1766 xway_chip.of_node = pdev->dev.of_node;
1767 ret = devm_gpiochip_add_data(&pdev->dev, &xway_chip, NULL);
1769 dev_err(&pdev->dev, "Failed to register gpio chip\n");
1783 if (!of_property_read_bool(pdev->dev.of_node, "gpio-ranges")) {
1790 dev_info(&pdev->dev, "Init done\n");