static int PVRSRVDrmProbe(struct platform_device *pDevice) { PVR_TRACE(("PVRSRVDrmProbe")); return drm_get_platform_dev(pDevice, &sPVRDrmDriver); }
/** * drm_platform_init - Register a platform device with the DRM subsystem * @driver: DRM device driver * @platform_device: platform device to register * * Registers the specified DRM device driver and platform device with the DRM * subsystem, initializing a drm_device structure and calling the driver's * .load() function. * * Return: 0 on success or a negative error code on failure. */ int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device) { DRM_DEBUG("\n"); driver->bus = &drm_platform_bus; return drm_get_platform_dev(platform_device, driver); }
int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device) { DRM_DEBUG("\n"); driver->kdriver.platform_device = platform_device; driver->bus = &drm_platform_bus; INIT_LIST_HEAD(&driver->device_list); return drm_get_platform_dev(platform_device, driver); }
int drm_platform_init(struct drm_driver *driver) { return drm_get_platform_dev(driver->platform_device, driver); }