Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
common.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/pm_clock.h>

Go to the source code of this file.

Functions

int dev_pm_get_subsys_data (struct device *dev)
 
 EXPORT_SYMBOL_GPL (dev_pm_get_subsys_data)
 
int dev_pm_put_subsys_data (struct device *dev)
 
 EXPORT_SYMBOL_GPL (dev_pm_put_subsys_data)
 

Function Documentation

int dev_pm_get_subsys_data ( struct device dev)

dev_pm_get_subsys_data - Create or refcount power.subsys_data for device. : Device to handle.

If power.subsys_data is NULL, point it to a new object, otherwise increment its reference counter. Return 1 if a new object has been created, otherwise return 0 or error code.

Definition at line 24 of file common.c.

int dev_pm_put_subsys_data ( struct device dev)

dev_pm_put_subsys_data - Drop reference to power.subsys_data. : Device to handle.

If the reference counter of power.subsys_data is zero after dropping the reference, power.subsys_data is removed. Return 1 if that happens or 0 otherwise.

Definition at line 61 of file common.c.

EXPORT_SYMBOL_GPL ( dev_pm_get_subsys_data  )
EXPORT_SYMBOL_GPL ( dev_pm_put_subsys_data  )