Commit a2a28ad9 authored by Kevin Hilman's avatar Kevin Hilman

OMAP: omap_device: remove internal functions from omap_device.h

The *_device_register() functions and the count/fill resources functions
are internal to omap_device and do not need to be in the header.
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 47c3e5d8
...@@ -88,9 +88,6 @@ int omap_device_shutdown(struct platform_device *pdev); ...@@ -88,9 +88,6 @@ int omap_device_shutdown(struct platform_device *pdev);
/* Core code interface */ /* Core code interface */
int omap_device_count_resources(struct omap_device *od);
int omap_device_fill_resources(struct omap_device *od, struct resource *res);
struct omap_device *omap_device_build(const char *pdev_name, int pdev_id, struct omap_device *omap_device_build(const char *pdev_name, int pdev_id,
struct omap_hwmod *oh, void *pdata, struct omap_hwmod *oh, void *pdata,
int pdata_len, int pdata_len,
...@@ -103,9 +100,6 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, ...@@ -103,9 +100,6 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
struct omap_device_pm_latency *pm_lats, struct omap_device_pm_latency *pm_lats,
int pm_lats_cnt, int is_early_device); int pm_lats_cnt, int is_early_device);
int omap_device_register(struct omap_device *od);
int omap_early_device_register(struct omap_device *od);
void __iomem *omap_device_get_rt_va(struct omap_device *od); void __iomem *omap_device_get_rt_va(struct omap_device *od);
/* OMAP PM interface */ /* OMAP PM interface */
......
...@@ -94,6 +94,9 @@ ...@@ -94,6 +94,9 @@
#define USE_WAKEUP_LAT 0 #define USE_WAKEUP_LAT 0
#define IGNORE_WAKEUP_LAT 1 #define IGNORE_WAKEUP_LAT 1
static int omap_device_register(struct omap_device *od);
static int omap_early_device_register(struct omap_device *od);
/* Private functions */ /* Private functions */
/** /**
...@@ -339,7 +342,7 @@ u32 omap_device_get_context_loss_count(struct platform_device *pdev) ...@@ -339,7 +342,7 @@ u32 omap_device_get_context_loss_count(struct platform_device *pdev)
* much memory to allocate before calling * much memory to allocate before calling
* omap_device_fill_resources(). Returns the count. * omap_device_fill_resources(). Returns the count.
*/ */
int omap_device_count_resources(struct omap_device *od) static int omap_device_count_resources(struct omap_device *od)
{ {
int c = 0; int c = 0;
int i; int i;
...@@ -370,7 +373,8 @@ int omap_device_count_resources(struct omap_device *od) ...@@ -370,7 +373,8 @@ int omap_device_count_resources(struct omap_device *od)
* functions to get device resources. Hacking around the existing * functions to get device resources. Hacking around the existing
* platform_device code wastes memory. Returns 0. * platform_device code wastes memory. Returns 0.
*/ */
int omap_device_fill_resources(struct omap_device *od, struct resource *res) static int omap_device_fill_resources(struct omap_device *od,
struct resource *res)
{ {
int c = 0; int c = 0;
int i, r; int i, r;
...@@ -534,7 +538,7 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, ...@@ -534,7 +538,7 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
* platform_early_add_device() on the underlying platform_device. * platform_early_add_device() on the underlying platform_device.
* Returns 0 by default. * Returns 0 by default.
*/ */
int omap_early_device_register(struct omap_device *od) static int omap_early_device_register(struct omap_device *od)
{ {
struct platform_device *devices[1]; struct platform_device *devices[1];
...@@ -634,7 +638,7 @@ static struct dev_pm_domain omap_device_pm_domain = { ...@@ -634,7 +638,7 @@ static struct dev_pm_domain omap_device_pm_domain = {
* platform_device_register() on the underlying platform_device. * platform_device_register() on the underlying platform_device.
* Returns the return value of platform_device_register(). * Returns the return value of platform_device_register().
*/ */
int omap_device_register(struct omap_device *od) static int omap_device_register(struct omap_device *od)
{ {
pr_debug("omap_device: %s: registering\n", od->pdev.name); pr_debug("omap_device: %s: registering\n", od->pdev.name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment