Name

drm_platform_init — Register a platform device with the DRM subsystem

Synopsis

int drm_platform_init (struct drm_driver * driver,
 struct platform_device * platform_device);
 

Arguments

driver

DRM device driver

platform_device

platform device to register

Description

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.

NOTE

This function is deprecated, please use drm_dev_alloc and drm_dev_register instead and remove your ->load callback.

Return

0 on success or a negative error code on failure.