Lines Matching defs:plat_dev
9371 struct platform_device *plat_dev = to_platform_device(dev);
9372 struct niu_parent *p = plat_dev->dev.platform_data;
9401 struct platform_device *plat_dev = to_platform_device(dev);
9402 struct niu_parent *p = plat_dev->dev.platform_data;
9430 struct platform_device *plat_dev = to_platform_device(dev);
9431 struct niu_parent *p = plat_dev->dev.platform_data;
9463 struct platform_device *plat_dev = to_platform_device(dev);
9464 struct niu_parent *p = plat_dev->dev.platform_data;
9482 struct platform_device *plat_dev;
9486 plat_dev = platform_device_register_simple("niu-board", niu_parent_index,
9488 if (IS_ERR(plat_dev))
9492 int err = device_create_file(&plat_dev->dev,
9504 plat_dev->dev.platform_data = p;
9505 p->plat_dev = plat_dev;
9539 platform_device_unregister(plat_dev);
9566 err = sysfs_create_link(&p->plat_dev->dev.kobj,
9594 sysfs_remove_link(&p->plat_dev->dev.kobj, port_name);
9601 platform_device_unregister(p->plat_dev);