Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272584
b: refs/heads/master
c: bfae4f8
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman committed Sep 15, 2011
1 parent c9289ba commit 4fde4c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3528c58eb9e818b7821501afa2916eb12131994a
refs/heads/master: bfae4f8ffa8249c7cdd1483320cf1adc0ec954ff
22 changes: 11 additions & 11 deletions trunk/arch/arm/plat-omap/omap_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
#define USE_WAKEUP_LAT 0
#define IGNORE_WAKEUP_LAT 1

static int omap_device_register(struct omap_device *od);
static int omap_early_device_register(struct omap_device *od);
static int omap_device_register(struct platform_device *pdev);
static int omap_early_device_register(struct platform_device *pdev);

/* Private functions */

Expand Down Expand Up @@ -501,9 +501,9 @@ struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
od->pm_lats_cnt = pm_lats_cnt;

if (is_early_device)
ret = omap_early_device_register(od);
ret = omap_early_device_register(&od->pdev);
else
ret = omap_device_register(od);
ret = omap_device_register(&od->pdev);

for (i = 0; i < oh_cnt; i++) {
hwmods[i]->od = od;
Expand Down Expand Up @@ -538,11 +538,11 @@ struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
* platform_early_add_device() on the underlying platform_device.
* Returns 0 by default.
*/
static int omap_early_device_register(struct omap_device *od)
static int omap_early_device_register(struct platform_device *pdev)
{
struct platform_device *devices[1];

devices[0] = &(od->pdev);
devices[0] = pdev;
early_platform_add_devices(devices, 1);
return 0;
}
Expand Down Expand Up @@ -638,13 +638,13 @@ static struct dev_pm_domain omap_device_pm_domain = {
* platform_device_register() on the underlying platform_device.
* Returns the return value of platform_device_register().
*/
static int omap_device_register(struct omap_device *od)
static int omap_device_register(struct platform_device *pdev)
{
pr_debug("omap_device: %s: registering\n", od->pdev.name);
pr_debug("omap_device: %s: registering\n", pdev->name);

od->pdev.dev.parent = &omap_device_parent;
od->pdev.dev.pm_domain = &omap_device_pm_domain;
return platform_device_register(&od->pdev);
pdev->dev.parent = &omap_device_parent;
pdev->dev.pm_domain = &omap_device_pm_domain;
return platform_device_register(pdev);
}


Expand Down

0 comments on commit 4fde4c3

Please sign in to comment.