/* This function register a rt_device to platform bus.  */
rt_err_t rt_platform_device_register(struct rt_platform_device *pdev)
/* This function register a rt_device to platform bus.  */
rt_err_t rt_platform_device_register(struct rt_platform_device *pdev)
{
    RT_ASSERT(pdev != RT_NULL);
    return rt_bus_add_device(&platform_bus, &pdev->parent);
}