Lines Matching defs:ofdev
1545 static void grcan_sanitize_module_config(struct platform_device *ofdev)
1547 grcan_sanitize_enable0(ofdev);
1548 grcan_sanitize_enable1(ofdev);
1549 grcan_sanitize_select(ofdev);
1550 grcan_sanitize_txsize(ofdev);
1551 grcan_sanitize_rxsize(ofdev);
1576 static int grcan_setup_netdev(struct platform_device *ofdev,
1598 priv->ofdev_dev = &ofdev->dev;
1615 dev_dbg(&ofdev->dev, "Hardware supports triple-sampling\n");
1627 SET_NETDEV_DEV(dev, &ofdev->dev);
1628 dev_info(&ofdev->dev, "regs=0x%p, irq=%d, clock=%d\n",
1635 platform_set_drvdata(ofdev, dev);
1648 static int grcan_probe(struct platform_device *ofdev)
1650 struct device_node *np = ofdev->dev.of_node;
1671 dev_err(&ofdev->dev, "unable to fetch \"freq\" property\n");
1675 base = devm_platform_ioremap_resource(ofdev, 0);
1683 dev_err(&ofdev->dev, "no irq found\n");
1688 grcan_sanitize_module_config(ofdev);
1690 err = grcan_setup_netdev(ofdev, base, irq, ambafreq, txbug);
1699 dev_err(&ofdev->dev,
1705 static int grcan_remove(struct platform_device *ofdev)
1707 struct net_device *dev = platform_get_drvdata(ofdev);