drm_platform_init(9) 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.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT