mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
of/device: Replace struct of_device with struct platform_device
of_device is just an alias for platform_device, so remove it entirely. Also replace to_of_device() with to_platform_device() and update comment blocks. This patch was initially generated from the following semantic patch, and then edited by hand to pick up the bits that coccinelle didn't catch. @@ @@ -struct of_device +struct platform_device Signed-off-by: Grant Likely <[email protected]> Reviewed-by: David S. Miller <[email protected]>
This commit is contained in:
parent
fc1caf6eaf
commit
2dc1158137
158 changed files with 519 additions and 527 deletions
|
|
@ -200,7 +200,7 @@ static irqreturn_t mpc85xx_pci_isr(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int __devinit mpc85xx_pci_err_probe(struct of_device *op,
|
||||
static int __devinit mpc85xx_pci_err_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct edac_pci_ctl_info *pci;
|
||||
|
|
@ -305,7 +305,7 @@ err:
|
|||
return res;
|
||||
}
|
||||
|
||||
static int mpc85xx_pci_err_remove(struct of_device *op)
|
||||
static int mpc85xx_pci_err_remove(struct platform_device *op)
|
||||
{
|
||||
struct edac_pci_ctl_info *pci = dev_get_drvdata(&op->dev);
|
||||
struct mpc85xx_pci_pdata *pdata = pci->pvt_info;
|
||||
|
|
@ -503,7 +503,7 @@ static irqreturn_t mpc85xx_l2_isr(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int __devinit mpc85xx_l2_err_probe(struct of_device *op,
|
||||
static int __devinit mpc85xx_l2_err_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct edac_device_ctl_info *edac_dev;
|
||||
|
|
@ -613,7 +613,7 @@ err:
|
|||
return res;
|
||||
}
|
||||
|
||||
static int mpc85xx_l2_err_remove(struct of_device *op)
|
||||
static int mpc85xx_l2_err_remove(struct platform_device *op)
|
||||
{
|
||||
struct edac_device_ctl_info *edac_dev = dev_get_drvdata(&op->dev);
|
||||
struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info;
|
||||
|
|
@ -953,7 +953,7 @@ static void __devinit mpc85xx_init_csrows(struct mem_ctl_info *mci)
|
|||
}
|
||||
}
|
||||
|
||||
static int __devinit mpc85xx_mc_err_probe(struct of_device *op,
|
||||
static int __devinit mpc85xx_mc_err_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct mem_ctl_info *mci;
|
||||
|
|
@ -1085,7 +1085,7 @@ err:
|
|||
return res;
|
||||
}
|
||||
|
||||
static int mpc85xx_mc_err_remove(struct of_device *op)
|
||||
static int mpc85xx_mc_err_remove(struct platform_device *op)
|
||||
{
|
||||
struct mem_ctl_info *mci = dev_get_drvdata(&op->dev);
|
||||
struct mpc85xx_mc_pdata *pdata = mci->pvt_info;
|
||||
|
|
|
|||
|
|
@ -184,9 +184,9 @@ struct ppc4xx_ecc_status {
|
|||
|
||||
/* Function Prototypes */
|
||||
|
||||
static int ppc4xx_edac_probe(struct of_device *device,
|
||||
static int ppc4xx_edac_probe(struct platform_device *device,
|
||||
const struct of_device_id *device_id);
|
||||
static int ppc4xx_edac_remove(struct of_device *device);
|
||||
static int ppc4xx_edac_remove(struct platform_device *device);
|
||||
|
||||
/* Global Variables */
|
||||
|
||||
|
|
@ -1014,7 +1014,7 @@ ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1)
|
|||
*/
|
||||
static int __devinit
|
||||
ppc4xx_edac_mc_init(struct mem_ctl_info *mci,
|
||||
struct of_device *op,
|
||||
struct platform_device *op,
|
||||
const struct of_device_id *match,
|
||||
const dcr_host_t *dcr_host,
|
||||
u32 mcopt1)
|
||||
|
|
@ -1108,7 +1108,7 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci,
|
|||
* mapped and assigned.
|
||||
*/
|
||||
static int __devinit
|
||||
ppc4xx_edac_register_irq(struct of_device *op, struct mem_ctl_info *mci)
|
||||
ppc4xx_edac_register_irq(struct platform_device *op, struct mem_ctl_info *mci)
|
||||
{
|
||||
int status = 0;
|
||||
int ded_irq, sec_irq;
|
||||
|
|
@ -1238,7 +1238,7 @@ ppc4xx_edac_map_dcrs(const struct device_node *np, dcr_host_t *dcr_host)
|
|||
* driver; otherwise, < 0 on error.
|
||||
*/
|
||||
static int __devinit
|
||||
ppc4xx_edac_probe(struct of_device *op, const struct of_device_id *match)
|
||||
ppc4xx_edac_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
int status = 0;
|
||||
u32 mcopt1, memcheck;
|
||||
|
|
@ -1359,7 +1359,7 @@ ppc4xx_edac_probe(struct of_device *op, const struct of_device_id *match)
|
|||
* Unconditionally returns 0.
|
||||
*/
|
||||
static int
|
||||
ppc4xx_edac_remove(struct of_device *op)
|
||||
ppc4xx_edac_remove(struct platform_device *op)
|
||||
{
|
||||
struct mem_ctl_info *mci = dev_get_drvdata(&op->dev);
|
||||
struct ppc4xx_edac_pdata *pdata = mci->pvt_info;
|
||||
|
|
|
|||
Loading…
Reference in a new issue