---
name: "drm_platform_init"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_platform_init"
---

# drm\_platform\_init(9)

Register a platform device with the DRM subsystem

## 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.

## RETURN

0 on success or a negative error code on failure.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
