Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
drm_platform.c File Reference
#include <linux/export.h>
#include <drm/drmP.h>

Go to the source code of this file.

Functions

int drm_get_platform_dev (struct platform_device *platdev, struct drm_driver *driver)
 
 EXPORT_SYMBOL (drm_get_platform_dev)
 
int drm_platform_init (struct drm_driver *driver, struct platform_device *platform_device)
 
 EXPORT_SYMBOL (drm_platform_init)
 
void drm_platform_exit (struct drm_driver *driver, struct platform_device *platform_device)
 
 EXPORT_SYMBOL (drm_platform_exit)
 

Function Documentation

int drm_get_platform_dev ( struct platform_device platdev,
struct drm_driver *  driver 
)

Register.

Parameters
platdev- Platform device struture
Returns
zero on success or a negative number on failure.

Attempt to gets inter module "drm" information. If we are first then register the character device and inter module information. Try and register, if we fail to register, backout previous work.

Definition at line 42 of file drm_platform.c.

void drm_platform_exit ( struct drm_driver *  driver,
struct platform_device platform_device 
)

Definition at line 196 of file drm_platform.c.

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

Platform device initialization. Called direct from modules.

Returns
zero on success or a negative number on failure.

Initializes a drm_device structures,registering the stubs

Expands the DRIVER_PREINIT and DRIVER_POST_INIT macros before and after the initialization for driver customization.

Definition at line 185 of file drm_platform.c.

EXPORT_SYMBOL ( drm_get_platform_dev  )
EXPORT_SYMBOL ( drm_platform_init  )
EXPORT_SYMBOL ( drm_platform_exit  )