Lines Matching defs:plat_dev
2349 struct platform_device *plat_dev = NULL;
2360 plat_dev = kmemdup(&wl1271_device, sizeof(wl1271_device), GFP_KERNEL);
2361 if (!plat_dev) {
2373 wl->plat_dev = plat_dev;
2411 ret = platform_device_register(wl->plat_dev);
2416 dev_set_drvdata(&wl->plat_dev->dev, wl);
2419 ret = device_create_file(&wl->plat_dev->dev, &dev_attr_bt_coex_state);
2426 ret = device_create_file(&wl->plat_dev->dev, &dev_attr_hw_pg_ver);
2435 device_remove_file(&wl->plat_dev->dev, &dev_attr_bt_coex_state);
2438 platform_device_unregister(wl->plat_dev);
2442 kfree(plat_dev);
2455 platform_device_unregister(wl->plat_dev);
2456 kfree(wl->plat_dev);