|
@@ -1,3 +1,4 @@
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* omap_device implementation
|
|
* omap_device implementation
|
|
*
|
|
*
|
|
@@ -612,7 +613,7 @@ void omap_device_delete(struct omap_device *od)
|
|
* information. Returns ERR_PTR(-EINVAL) if @oh is NULL; otherwise,
|
|
* information. Returns ERR_PTR(-EINVAL) if @oh is NULL; otherwise,
|
|
* passes along the return value of omap_device_build_ss().
|
|
* passes along the return value of omap_device_build_ss().
|
|
*/
|
|
*/
|
|
-struct platform_device *omap_device_build(const char *pdev_name, int pdev_id,
|
|
|
|
|
|
+struct platform_device __init *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,
|
|
struct omap_device_pm_latency *pm_lats,
|
|
struct omap_device_pm_latency *pm_lats,
|
|
@@ -645,7 +646,7 @@ struct platform_device *omap_device_build(const char *pdev_name, int pdev_id,
|
|
* platform_device record. Returns an ERR_PTR() on error, or passes
|
|
* platform_device record. Returns an ERR_PTR() on error, or passes
|
|
* along the return value of omap_device_register().
|
|
* along the return value of omap_device_register().
|
|
*/
|
|
*/
|
|
-struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
|
|
|
|
|
|
+struct platform_device __init *omap_device_build_ss(const char *pdev_name, int pdev_id,
|
|
struct omap_hwmod **ohs, int oh_cnt,
|
|
struct omap_hwmod **ohs, int oh_cnt,
|
|
void *pdata, int pdata_len,
|
|
void *pdata, int pdata_len,
|
|
struct omap_device_pm_latency *pm_lats,
|
|
struct omap_device_pm_latency *pm_lats,
|
|
@@ -710,7 +711,7 @@ odbs_exit:
|
|
* 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.
|
|
*/
|
|
*/
|
|
-static int omap_early_device_register(struct platform_device *pdev)
|
|
|
|
|
|
+static int __init omap_early_device_register(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct platform_device *devices[1];
|
|
struct platform_device *devices[1];
|
|
|
|
|