test_bus
ret = test_bus(adap);
struct platform_device *pdev, *test_bus;
test_bus = platform_device_register_full(&test_bus_info);
rc = PTR_ERR_OR_ZERO(test_bus);
test_bus->dev.of_node = np;
platform_device_add_resources(test_bus, &test_bus_res, 1);
of_platform_populate(np, match, NULL, &test_bus->dev);
of_platform_depopulate(&test_bus->dev);
platform_device_unregister(test_bus);