powerpc: remove references to of_device and to_of_device

of_device is just a #define alias to platform_device.  This patch
replaces all references to it with platform_device.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Grant Likely
2010-07-22 15:52:34 -06:00
vanhempi 94a0cb1fc6
commit a454dc5059
17 muutettua tiedostoa jossa 47 lisäystä ja 46 poistoa

Näytä tiedosto

@@ -99,7 +99,7 @@ struct pmc_type {
int has_deep_sleep;
};
static struct of_device *pmc_dev;
static struct platform_device *pmc_dev;
static int has_deep_sleep, deep_sleeping;
static int pmc_irq;
static struct mpc83xx_pmc __iomem *pmc_regs;
@@ -318,7 +318,7 @@ static struct platform_suspend_ops mpc83xx_suspend_ops = {
.end = mpc83xx_suspend_end,
};
static int pmc_probe(struct of_device *ofdev,
static int pmc_probe(struct platform_device *ofdev,
const struct of_device_id *match)
{
struct device_node *np = ofdev->dev.of_node;
@@ -396,7 +396,7 @@ out:
return ret;
}
static int pmc_remove(struct of_device *ofdev)
static int pmc_remove(struct platform_device *ofdev)
{
return -EPERM;
};