You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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 <grant.likely@secretlab.ca> Reviewed-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -102,7 +102,7 @@ static struct of_device_id mpc837x_ids[] = {
|
||||
|
||||
static int __init mpc837x_declare_of_platform_devices(void)
|
||||
{
|
||||
/* Publish of_device */
|
||||
/* Publish platform_device */
|
||||
of_platform_bus_probe(NULL, mpc837x_ids, NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -78,7 +78,7 @@ static struct of_device_id mpc837x_ids[] = {
|
||||
|
||||
static int __init mpc837x_declare_of_platform_devices(void)
|
||||
{
|
||||
/* Publish of_device */
|
||||
/* Publish platform_device */
|
||||
of_platform_bus_probe(NULL, mpc837x_ids, NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -1332,7 +1332,7 @@ static inline void fsl_rio_info(struct device *dev, u32 ccsr)
|
||||
|
||||
/**
|
||||
* fsl_rio_setup - Setup Freescale PowerPC RapidIO interface
|
||||
* @dev: of_device pointer
|
||||
* @dev: platform_device pointer
|
||||
*
|
||||
* Initializes MPC85xx RapidIO hardware interface, configures
|
||||
* master port with system-specific info, and registers the
|
||||
|
||||
@@ -680,7 +680,7 @@ mpc52xx_ata_remove_one(struct device *dev)
|
||||
/* ======================================================================== */
|
||||
|
||||
static int __devinit
|
||||
mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
|
||||
mpc52xx_ata_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
unsigned int ipb_freq;
|
||||
struct resource res_mem;
|
||||
@@ -821,7 +821,7 @@ mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
|
||||
}
|
||||
|
||||
static int
|
||||
mpc52xx_ata_remove(struct of_device *op)
|
||||
mpc52xx_ata_remove(struct platform_device *op)
|
||||
{
|
||||
struct mpc52xx_ata_priv *priv;
|
||||
int task_irq;
|
||||
@@ -848,7 +848,7 @@ mpc52xx_ata_remove(struct of_device *op)
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
static int
|
||||
mpc52xx_ata_suspend(struct of_device *op, pm_message_t state)
|
||||
mpc52xx_ata_suspend(struct platform_device *op, pm_message_t state)
|
||||
{
|
||||
struct ata_host *host = dev_get_drvdata(&op->dev);
|
||||
|
||||
@@ -856,7 +856,7 @@ mpc52xx_ata_suspend(struct of_device *op, pm_message_t state)
|
||||
}
|
||||
|
||||
static int
|
||||
mpc52xx_ata_resume(struct of_device *op)
|
||||
mpc52xx_ata_resume(struct platform_device *op)
|
||||
{
|
||||
struct ata_host *host = dev_get_drvdata(&op->dev);
|
||||
struct mpc52xx_ata_priv *priv = host->private_data;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/ata_platform.h>
|
||||
|
||||
static int __devinit pata_of_platform_probe(struct of_device *ofdev,
|
||||
static int __devinit pata_of_platform_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int ret;
|
||||
@@ -78,7 +78,7 @@ static int __devinit pata_of_platform_probe(struct of_device *ofdev,
|
||||
reg_shift, pio_mask);
|
||||
}
|
||||
|
||||
static int __devexit pata_of_platform_remove(struct of_device *ofdev)
|
||||
static int __devexit pata_of_platform_remove(struct platform_device *ofdev)
|
||||
{
|
||||
return __pata_platform_remove(&ofdev->dev);
|
||||
}
|
||||
|
||||
@@ -1296,7 +1296,7 @@ static const struct ata_port_info sata_fsl_port_info[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static int sata_fsl_probe(struct of_device *ofdev,
|
||||
static int sata_fsl_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int retval = -ENXIO;
|
||||
@@ -1370,7 +1370,7 @@ error_exit_with_cleanup:
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int sata_fsl_remove(struct of_device *ofdev)
|
||||
static int sata_fsl_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct ata_host *host = dev_get_drvdata(&ofdev->dev);
|
||||
struct sata_fsl_host_priv *host_priv = host->private_data;
|
||||
@@ -1387,13 +1387,13 @@ static int sata_fsl_remove(struct of_device *ofdev)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int sata_fsl_suspend(struct of_device *op, pm_message_t state)
|
||||
static int sata_fsl_suspend(struct platform_device *op, pm_message_t state)
|
||||
{
|
||||
struct ata_host *host = dev_get_drvdata(&op->dev);
|
||||
return ata_host_suspend(host, state);
|
||||
}
|
||||
|
||||
static int sata_fsl_resume(struct of_device *op)
|
||||
static int sata_fsl_resume(struct platform_device *op)
|
||||
{
|
||||
struct ata_host *host = dev_get_drvdata(&op->dev);
|
||||
struct sata_fsl_host_priv *host_priv = host->private_data;
|
||||
|
||||
+13
-13
@@ -674,7 +674,7 @@ static void fore200e_sba_write(u32 val, volatile u32 __iomem *addr)
|
||||
|
||||
static u32 fore200e_sba_dma_map(struct fore200e *fore200e, void* virt_addr, int size, int direction)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
u32 dma_addr;
|
||||
|
||||
dma_addr = dma_map_single(&op->dev, virt_addr, size, direction);
|
||||
@@ -687,7 +687,7 @@ static u32 fore200e_sba_dma_map(struct fore200e *fore200e, void* virt_addr, int
|
||||
|
||||
static void fore200e_sba_dma_unmap(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
DPRINTK(3, "SBUS DVMA unmapping: dma_addr = 0x%08x, size = %d, direction = %d,\n",
|
||||
dma_addr, size, direction);
|
||||
@@ -697,7 +697,7 @@ static void fore200e_sba_dma_unmap(struct fore200e *fore200e, u32 dma_addr, int
|
||||
|
||||
static void fore200e_sba_dma_sync_for_cpu(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
DPRINTK(3, "SBUS DVMA sync: dma_addr = 0x%08x, size = %d, direction = %d\n", dma_addr, size, direction);
|
||||
|
||||
@@ -706,7 +706,7 @@ static void fore200e_sba_dma_sync_for_cpu(struct fore200e *fore200e, u32 dma_add
|
||||
|
||||
static void fore200e_sba_dma_sync_for_device(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
DPRINTK(3, "SBUS DVMA sync: dma_addr = 0x%08x, size = %d, direction = %d\n", dma_addr, size, direction);
|
||||
|
||||
@@ -719,7 +719,7 @@ static void fore200e_sba_dma_sync_for_device(struct fore200e *fore200e, u32 dma_
|
||||
static int fore200e_sba_dma_chunk_alloc(struct fore200e *fore200e, struct chunk *chunk,
|
||||
int size, int nbr, int alignment)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
chunk->alloc_size = chunk->align_size = size * nbr;
|
||||
|
||||
@@ -738,7 +738,7 @@ static int fore200e_sba_dma_chunk_alloc(struct fore200e *fore200e, struct chunk
|
||||
/* free a DVMA consistent chunk of memory */
|
||||
static void fore200e_sba_dma_chunk_free(struct fore200e *fore200e, struct chunk *chunk)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
dma_free_coherent(&op->dev, chunk->alloc_size,
|
||||
chunk->alloc_addr, chunk->dma_addr);
|
||||
@@ -770,7 +770,7 @@ static void fore200e_sba_reset(struct fore200e *fore200e)
|
||||
|
||||
static int __init fore200e_sba_map(struct fore200e *fore200e)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
unsigned int bursts;
|
||||
|
||||
/* gain access to the SBA specific registers */
|
||||
@@ -800,7 +800,7 @@ static int __init fore200e_sba_map(struct fore200e *fore200e)
|
||||
|
||||
static void fore200e_sba_unmap(struct fore200e *fore200e)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
|
||||
of_iounmap(&op->resource[0], fore200e->regs.sba.hcr, SBA200E_HCR_LENGTH);
|
||||
of_iounmap(&op->resource[1], fore200e->regs.sba.bsr, SBA200E_BSR_LENGTH);
|
||||
@@ -816,7 +816,7 @@ static int __init fore200e_sba_configure(struct fore200e *fore200e)
|
||||
|
||||
static int __init fore200e_sba_prom_read(struct fore200e *fore200e, struct prom_data *prom)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
const u8 *prop;
|
||||
int len;
|
||||
|
||||
@@ -840,7 +840,7 @@ static int __init fore200e_sba_prom_read(struct fore200e *fore200e, struct prom_
|
||||
|
||||
static int fore200e_sba_proc_read(struct fore200e *fore200e, char *page)
|
||||
{
|
||||
struct of_device *op = fore200e->bus_dev;
|
||||
struct platform_device *op = fore200e->bus_dev;
|
||||
const struct linux_prom_registers *regs;
|
||||
|
||||
regs = of_get_property(op->dev.of_node, "reg", NULL);
|
||||
@@ -2513,7 +2513,7 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)
|
||||
device = &((struct pci_dev *) fore200e->bus_dev)->dev;
|
||||
#ifdef CONFIG_SBUS
|
||||
else if (strcmp(fore200e->bus->model_name, "SBA-200E") == 0)
|
||||
device = &((struct of_device *) fore200e->bus_dev)->dev;
|
||||
device = &((struct platform_device *) fore200e->bus_dev)->dev;
|
||||
#endif
|
||||
else
|
||||
return err;
|
||||
@@ -2643,7 +2643,7 @@ fore200e_init(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SBUS
|
||||
static int __devinit fore200e_sba_probe(struct of_device *op,
|
||||
static int __devinit fore200e_sba_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
const struct fore200e_bus *bus = match->data;
|
||||
@@ -2675,7 +2675,7 @@ static int __devinit fore200e_sba_probe(struct of_device *op,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit fore200e_sba_remove(struct of_device *op)
|
||||
static int __devexit fore200e_sba_remove(struct platform_device *op)
|
||||
{
|
||||
struct fore200e *fore200e = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
||||
@@ -1188,7 +1188,7 @@ static struct platform_driver ace_platform_driver = {
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static int __devinit
|
||||
ace_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
ace_of_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct resource res;
|
||||
resource_size_t physaddr;
|
||||
@@ -1220,7 +1220,7 @@ ace_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width);
|
||||
}
|
||||
|
||||
static int __devexit ace_of_remove(struct of_device *op)
|
||||
static int __devexit ace_of_remove(struct platform_device *op)
|
||||
{
|
||||
ace_free(&op->dev);
|
||||
return 0;
|
||||
|
||||
@@ -619,7 +619,7 @@ static void __devinit n2rng_driver_version(void)
|
||||
pr_info("%s", version);
|
||||
}
|
||||
|
||||
static int __devinit n2rng_probe(struct of_device *op,
|
||||
static int __devinit n2rng_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int victoria_falls = (match->data != NULL);
|
||||
@@ -714,7 +714,7 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit n2rng_remove(struct of_device *op)
|
||||
static int __devexit n2rng_remove(struct platform_device *op)
|
||||
{
|
||||
struct n2rng *np = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ struct n2rng_unit {
|
||||
};
|
||||
|
||||
struct n2rng {
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
|
||||
unsigned long flags;
|
||||
#define N2RNG_FLAG_VF 0x00000001 /* Victoria Falls RNG, else N2 */
|
||||
|
||||
@@ -94,7 +94,7 @@ static struct hwrng pasemi_rng = {
|
||||
.data_read = pasemi_rng_data_read,
|
||||
};
|
||||
|
||||
static int __devinit rng_probe(struct of_device *ofdev,
|
||||
static int __devinit rng_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
void __iomem *rng_regs;
|
||||
@@ -123,7 +123,7 @@ static int __devinit rng_probe(struct of_device *ofdev,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit rng_remove(struct of_device *dev)
|
||||
static int __devexit rng_remove(struct platform_device *dev)
|
||||
{
|
||||
void __iomem *rng_regs = (void __iomem *)pasemi_rng.priv;
|
||||
|
||||
|
||||
@@ -2502,7 +2502,7 @@ static struct pci_driver ipmi_pci_driver = {
|
||||
|
||||
|
||||
#ifdef CONFIG_PPC_OF
|
||||
static int __devinit ipmi_of_probe(struct of_device *dev,
|
||||
static int __devinit ipmi_of_probe(struct platform_device *dev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct smi_info *info;
|
||||
@@ -2576,7 +2576,7 @@ static int __devinit ipmi_of_probe(struct of_device *dev,
|
||||
return add_smi(info);
|
||||
}
|
||||
|
||||
static int __devexit ipmi_of_remove(struct of_device *dev)
|
||||
static int __devexit ipmi_of_remove(struct platform_device *dev)
|
||||
{
|
||||
cleanup_one_si(dev_get_drvdata(&dev->dev));
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -961,7 +961,7 @@ static int __init rtc_init(void)
|
||||
#endif
|
||||
#ifdef CONFIG_SPARC32
|
||||
struct device_node *ebus_dp;
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
#else
|
||||
void *r;
|
||||
#ifdef RTC_IRQ
|
||||
|
||||
@@ -761,7 +761,7 @@ static struct platform_driver hwicap_platform_driver = {
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static int __devinit
|
||||
hwicap_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
hwicap_of_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct resource res;
|
||||
const unsigned int *id;
|
||||
@@ -798,7 +798,7 @@ hwicap_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
regs);
|
||||
}
|
||||
|
||||
static int __devexit hwicap_of_remove(struct of_device *op)
|
||||
static int __devexit hwicap_of_remove(struct platform_device *op)
|
||||
{
|
||||
return hwicap_remove(&op->dev);
|
||||
}
|
||||
|
||||
@@ -1150,7 +1150,7 @@ struct crypto4xx_alg_common crypto4xx_alg[] = {
|
||||
/**
|
||||
* Module Initialization Routine
|
||||
*/
|
||||
static int __init crypto4xx_probe(struct of_device *ofdev,
|
||||
static int __init crypto4xx_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int rc;
|
||||
@@ -1258,7 +1258,7 @@ err_alloc_dev:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int __exit crypto4xx_remove(struct of_device *ofdev)
|
||||
static int __exit crypto4xx_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct device *dev = &ofdev->dev;
|
||||
struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev);
|
||||
|
||||
@@ -104,7 +104,7 @@ struct crypto4xx_device {
|
||||
|
||||
struct crypto4xx_core_device {
|
||||
struct device *device;
|
||||
struct of_device *ofdev;
|
||||
struct platform_device *ofdev;
|
||||
struct crypto4xx_device *dev;
|
||||
u32 int_status;
|
||||
u32 irq;
|
||||
|
||||
+11
-11
@@ -1552,7 +1552,7 @@ static void __exit n2_unregister_algs(void)
|
||||
|
||||
/* To map CWQ queues to interrupt sources, the hypervisor API provides
|
||||
* a devino. This isn't very useful to us because all of the
|
||||
* interrupts listed in the of_device node have been translated to
|
||||
* interrupts listed in the device_node have been translated to
|
||||
* Linux virtual IRQ cookie numbers.
|
||||
*
|
||||
* So we have to back-translate, going through the 'intr' and 'ino'
|
||||
@@ -1560,7 +1560,7 @@ static void __exit n2_unregister_algs(void)
|
||||
* 'interrupts' property entries, in order to to figure out which
|
||||
* devino goes to which already-translated IRQ.
|
||||
*/
|
||||
static int find_devino_index(struct of_device *dev, struct spu_mdesc_info *ip,
|
||||
static int find_devino_index(struct platform_device *dev, struct spu_mdesc_info *ip,
|
||||
unsigned long dev_ino)
|
||||
{
|
||||
const unsigned int *dev_intrs;
|
||||
@@ -1588,7 +1588,7 @@ static int find_devino_index(struct of_device *dev, struct spu_mdesc_info *ip,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static int spu_map_ino(struct of_device *dev, struct spu_mdesc_info *ip,
|
||||
static int spu_map_ino(struct platform_device *dev, struct spu_mdesc_info *ip,
|
||||
const char *irq_name, struct spu_queue *p,
|
||||
irq_handler_t handler)
|
||||
{
|
||||
@@ -1736,7 +1736,7 @@ static void spu_list_destroy(struct list_head *list)
|
||||
* gathering cpu membership information.
|
||||
*/
|
||||
static int spu_mdesc_walk_arcs(struct mdesc_handle *mdesc,
|
||||
struct of_device *dev,
|
||||
struct platform_device *dev,
|
||||
u64 node, struct spu_queue *p,
|
||||
struct spu_queue **table)
|
||||
{
|
||||
@@ -1763,7 +1763,7 @@ static int spu_mdesc_walk_arcs(struct mdesc_handle *mdesc,
|
||||
|
||||
/* Process an 'exec-unit' MDESC node of type 'cwq'. */
|
||||
static int handle_exec_unit(struct spu_mdesc_info *ip, struct list_head *list,
|
||||
struct of_device *dev, struct mdesc_handle *mdesc,
|
||||
struct platform_device *dev, struct mdesc_handle *mdesc,
|
||||
u64 node, const char *iname, unsigned long q_type,
|
||||
irq_handler_t handler, struct spu_queue **table)
|
||||
{
|
||||
@@ -1794,7 +1794,7 @@ static int handle_exec_unit(struct spu_mdesc_info *ip, struct list_head *list,
|
||||
return spu_map_ino(dev, ip, iname, p, handler);
|
||||
}
|
||||
|
||||
static int spu_mdesc_scan(struct mdesc_handle *mdesc, struct of_device *dev,
|
||||
static int spu_mdesc_scan(struct mdesc_handle *mdesc, struct platform_device *dev,
|
||||
struct spu_mdesc_info *ip, struct list_head *list,
|
||||
const char *exec_name, unsigned long q_type,
|
||||
irq_handler_t handler, struct spu_queue **table)
|
||||
@@ -1855,7 +1855,7 @@ static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node,
|
||||
}
|
||||
|
||||
static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc,
|
||||
struct of_device *dev,
|
||||
struct platform_device *dev,
|
||||
struct spu_mdesc_info *ip,
|
||||
const char *node_name)
|
||||
{
|
||||
@@ -2004,7 +2004,7 @@ static void __devinit n2_spu_driver_version(void)
|
||||
pr_info("%s", version);
|
||||
}
|
||||
|
||||
static int __devinit n2_crypto_probe(struct of_device *dev,
|
||||
static int __devinit n2_crypto_probe(struct platform_device *dev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct mdesc_handle *mdesc;
|
||||
@@ -2081,7 +2081,7 @@ out_free_n2cp:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit n2_crypto_remove(struct of_device *dev)
|
||||
static int __devexit n2_crypto_remove(struct platform_device *dev)
|
||||
{
|
||||
struct n2_crypto *np = dev_get_drvdata(&dev->dev);
|
||||
|
||||
@@ -2116,7 +2116,7 @@ static void free_ncp(struct n2_mau *mp)
|
||||
kfree(mp);
|
||||
}
|
||||
|
||||
static int __devinit n2_mau_probe(struct of_device *dev,
|
||||
static int __devinit n2_mau_probe(struct platform_device *dev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct mdesc_handle *mdesc;
|
||||
@@ -2184,7 +2184,7 @@ out_free_ncp:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit n2_mau_remove(struct of_device *dev)
|
||||
static int __devexit n2_mau_remove(struct platform_device *dev)
|
||||
{
|
||||
struct n2_mau *mp = dev_get_drvdata(&dev->dev);
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ struct talitos_channel {
|
||||
|
||||
struct talitos_private {
|
||||
struct device *dev;
|
||||
struct of_device *ofdev;
|
||||
struct platform_device *ofdev;
|
||||
void __iomem *reg;
|
||||
int irq;
|
||||
|
||||
@@ -2308,7 +2308,7 @@ static int hw_supports(struct device *dev, __be32 desc_hdr_template)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int talitos_remove(struct of_device *ofdev)
|
||||
static int talitos_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct device *dev = &ofdev->dev;
|
||||
struct talitos_private *priv = dev_get_drvdata(dev);
|
||||
@@ -2401,7 +2401,7 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev,
|
||||
return t_alg;
|
||||
}
|
||||
|
||||
static int talitos_probe(struct of_device *ofdev,
|
||||
static int talitos_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device *dev = &ofdev->dev;
|
||||
|
||||
@@ -1297,7 +1297,7 @@ static void fsl_dma_chan_remove(struct fsldma_chan *chan)
|
||||
kfree(chan);
|
||||
}
|
||||
|
||||
static int __devinit fsldma_of_probe(struct of_device *op,
|
||||
static int __devinit fsldma_of_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct fsldma_device *fdev;
|
||||
@@ -1382,7 +1382,7 @@ out_return:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int fsldma_of_remove(struct of_device *op)
|
||||
static int fsldma_of_remove(struct platform_device *op)
|
||||
{
|
||||
struct fsldma_device *fdev;
|
||||
unsigned int i;
|
||||
|
||||
@@ -627,7 +627,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
|
||||
return &mdesc->desc;
|
||||
}
|
||||
|
||||
static int __devinit mpc_dma_probe(struct of_device *op,
|
||||
static int __devinit mpc_dma_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct device_node *dn = op->dev.of_node;
|
||||
@@ -753,7 +753,7 @@ static int __devinit mpc_dma_probe(struct of_device *op,
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int __devexit mpc_dma_remove(struct of_device *op)
|
||||
static int __devexit mpc_dma_remove(struct platform_device *op)
|
||||
{
|
||||
struct device *dev = &op->dev;
|
||||
struct mpc_dma *mdma = dev_get_drvdata(dev);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user