Skip to content

Commit 58d4ea6

Browse files
committed
Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: mmc_spi: Fix unterminated of_match_table of/sparc: fix build regression from of_device changes of/device: Replace struct of_device with struct platform_device
2 parents 26f0cf9 + fbe0f83 commit 58d4ea6

159 files changed

Lines changed: 523 additions & 530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/powerpc/platforms/83xx/mpc837x_mds.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static struct of_device_id mpc837x_ids[] = {
102102

103103
static int __init mpc837x_declare_of_platform_devices(void)
104104
{
105-
/* Publish of_device */
105+
/* Publish platform_device */
106106
of_platform_bus_probe(NULL, mpc837x_ids, NULL);
107107

108108
return 0;

‎arch/powerpc/platforms/83xx/mpc837x_rdb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static struct of_device_id mpc837x_ids[] = {
7878

7979
static int __init mpc837x_declare_of_platform_devices(void)
8080
{
81-
/* Publish of_device */
81+
/* Publish platform_device */
8282
of_platform_bus_probe(NULL, mpc837x_ids, NULL);
8383

8484
return 0;

‎arch/powerpc/sysdev/fsl_rio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ static inline void fsl_rio_info(struct device *dev, u32 ccsr)
13321332

13331333
/**
13341334
* fsl_rio_setup - Setup Freescale PowerPC RapidIO interface
1335-
* @dev: of_device pointer
1335+
* @dev: platform_device pointer
13361336
*
13371337
* Initializes MPC85xx RapidIO hardware interface, configures
13381338
* master port with system-specific info, and registers the

‎drivers/ata/pata_mpc52xx.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ mpc52xx_ata_remove_one(struct device *dev)
680680
/* ======================================================================== */
681681

682682
static int __devinit
683-
mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
683+
mpc52xx_ata_probe(struct platform_device *op, const struct of_device_id *match)
684684
{
685685
unsigned int ipb_freq;
686686
struct resource res_mem;
@@ -821,7 +821,7 @@ mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
821821
}
822822

823823
static int
824-
mpc52xx_ata_remove(struct of_device *op)
824+
mpc52xx_ata_remove(struct platform_device *op)
825825
{
826826
struct mpc52xx_ata_priv *priv;
827827
int task_irq;
@@ -848,15 +848,15 @@ mpc52xx_ata_remove(struct of_device *op)
848848
#ifdef CONFIG_PM
849849

850850
static int
851-
mpc52xx_ata_suspend(struct of_device *op, pm_message_t state)
851+
mpc52xx_ata_suspend(struct platform_device *op, pm_message_t state)
852852
{
853853
struct ata_host *host = dev_get_drvdata(&op->dev);
854854

855855
return ata_host_suspend(host, state);
856856
}
857857

858858
static int
859-
mpc52xx_ata_resume(struct of_device *op)
859+
mpc52xx_ata_resume(struct platform_device *op)
860860
{
861861
struct ata_host *host = dev_get_drvdata(&op->dev);
862862
struct mpc52xx_ata_priv *priv = host->private_data;

‎drivers/ata/pata_of_platform.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/of_platform.h>
1515
#include <linux/ata_platform.h>
1616

17-
static int __devinit pata_of_platform_probe(struct of_device *ofdev,
17+
static int __devinit pata_of_platform_probe(struct platform_device *ofdev,
1818
const struct of_device_id *match)
1919
{
2020
int ret;
@@ -78,7 +78,7 @@ static int __devinit pata_of_platform_probe(struct of_device *ofdev,
7878
reg_shift, pio_mask);
7979
}
8080

81-
static int __devexit pata_of_platform_remove(struct of_device *ofdev)
81+
static int __devexit pata_of_platform_remove(struct platform_device *ofdev)
8282
{
8383
return __pata_platform_remove(&ofdev->dev);
8484
}

‎drivers/ata/sata_fsl.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ static const struct ata_port_info sata_fsl_port_info[] = {
12961296
},
12971297
};
12981298

1299-
static int sata_fsl_probe(struct of_device *ofdev,
1299+
static int sata_fsl_probe(struct platform_device *ofdev,
13001300
const struct of_device_id *match)
13011301
{
13021302
int retval = -ENXIO;
@@ -1370,7 +1370,7 @@ static int sata_fsl_probe(struct of_device *ofdev,
13701370
return retval;
13711371
}
13721372

1373-
static int sata_fsl_remove(struct of_device *ofdev)
1373+
static int sata_fsl_remove(struct platform_device *ofdev)
13741374
{
13751375
struct ata_host *host = dev_get_drvdata(&ofdev->dev);
13761376
struct sata_fsl_host_priv *host_priv = host->private_data;
@@ -1387,13 +1387,13 @@ static int sata_fsl_remove(struct of_device *ofdev)
13871387
}
13881388

13891389
#ifdef CONFIG_PM
1390-
static int sata_fsl_suspend(struct of_device *op, pm_message_t state)
1390+
static int sata_fsl_suspend(struct platform_device *op, pm_message_t state)
13911391
{
13921392
struct ata_host *host = dev_get_drvdata(&op->dev);
13931393
return ata_host_suspend(host, state);
13941394
}
13951395

1396-
static int sata_fsl_resume(struct of_device *op)
1396+
static int sata_fsl_resume(struct platform_device *op)
13971397
{
13981398
struct ata_host *host = dev_get_drvdata(&op->dev);
13991399
struct sata_fsl_host_priv *host_priv = host->private_data;

‎drivers/atm/fore200e.c‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ static void fore200e_sba_write(u32 val, volatile u32 __iomem *addr)
674674

675675
static u32 fore200e_sba_dma_map(struct fore200e *fore200e, void* virt_addr, int size, int direction)
676676
{
677-
struct of_device *op = fore200e->bus_dev;
677+
struct platform_device *op = fore200e->bus_dev;
678678
u32 dma_addr;
679679

680680
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
687687

688688
static void fore200e_sba_dma_unmap(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
689689
{
690-
struct of_device *op = fore200e->bus_dev;
690+
struct platform_device *op = fore200e->bus_dev;
691691

692692
DPRINTK(3, "SBUS DVMA unmapping: dma_addr = 0x%08x, size = %d, direction = %d,\n",
693693
dma_addr, size, direction);
@@ -697,7 +697,7 @@ static void fore200e_sba_dma_unmap(struct fore200e *fore200e, u32 dma_addr, int
697697

698698
static void fore200e_sba_dma_sync_for_cpu(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
699699
{
700-
struct of_device *op = fore200e->bus_dev;
700+
struct platform_device *op = fore200e->bus_dev;
701701

702702
DPRINTK(3, "SBUS DVMA sync: dma_addr = 0x%08x, size = %d, direction = %d\n", dma_addr, size, direction);
703703

@@ -706,7 +706,7 @@ static void fore200e_sba_dma_sync_for_cpu(struct fore200e *fore200e, u32 dma_add
706706

707707
static void fore200e_sba_dma_sync_for_device(struct fore200e *fore200e, u32 dma_addr, int size, int direction)
708708
{
709-
struct of_device *op = fore200e->bus_dev;
709+
struct platform_device *op = fore200e->bus_dev;
710710

711711
DPRINTK(3, "SBUS DVMA sync: dma_addr = 0x%08x, size = %d, direction = %d\n", dma_addr, size, direction);
712712

@@ -719,7 +719,7 @@ static void fore200e_sba_dma_sync_for_device(struct fore200e *fore200e, u32 dma_
719719
static int fore200e_sba_dma_chunk_alloc(struct fore200e *fore200e, struct chunk *chunk,
720720
int size, int nbr, int alignment)
721721
{
722-
struct of_device *op = fore200e->bus_dev;
722+
struct platform_device *op = fore200e->bus_dev;
723723

724724
chunk->alloc_size = chunk->align_size = size * nbr;
725725

@@ -738,7 +738,7 @@ static int fore200e_sba_dma_chunk_alloc(struct fore200e *fore200e, struct chunk
738738
/* free a DVMA consistent chunk of memory */
739739
static void fore200e_sba_dma_chunk_free(struct fore200e *fore200e, struct chunk *chunk)
740740
{
741-
struct of_device *op = fore200e->bus_dev;
741+
struct platform_device *op = fore200e->bus_dev;
742742

743743
dma_free_coherent(&op->dev, chunk->alloc_size,
744744
chunk->alloc_addr, chunk->dma_addr);
@@ -770,7 +770,7 @@ static void fore200e_sba_reset(struct fore200e *fore200e)
770770

771771
static int __init fore200e_sba_map(struct fore200e *fore200e)
772772
{
773-
struct of_device *op = fore200e->bus_dev;
773+
struct platform_device *op = fore200e->bus_dev;
774774
unsigned int bursts;
775775

776776
/* gain access to the SBA specific registers */
@@ -800,7 +800,7 @@ static int __init fore200e_sba_map(struct fore200e *fore200e)
800800

801801
static void fore200e_sba_unmap(struct fore200e *fore200e)
802802
{
803-
struct of_device *op = fore200e->bus_dev;
803+
struct platform_device *op = fore200e->bus_dev;
804804

805805
of_iounmap(&op->resource[0], fore200e->regs.sba.hcr, SBA200E_HCR_LENGTH);
806806
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)
816816

817817
static int __init fore200e_sba_prom_read(struct fore200e *fore200e, struct prom_data *prom)
818818
{
819-
struct of_device *op = fore200e->bus_dev;
819+
struct platform_device *op = fore200e->bus_dev;
820820
const u8 *prop;
821821
int len;
822822

@@ -840,7 +840,7 @@ static int __init fore200e_sba_prom_read(struct fore200e *fore200e, struct prom_
840840

841841
static int fore200e_sba_proc_read(struct fore200e *fore200e, char *page)
842842
{
843-
struct of_device *op = fore200e->bus_dev;
843+
struct platform_device *op = fore200e->bus_dev;
844844
const struct linux_prom_registers *regs;
845845

846846
regs = of_get_property(op->dev.of_node, "reg", NULL);
@@ -2513,7 +2513,7 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)
25132513
device = &((struct pci_dev *) fore200e->bus_dev)->dev;
25142514
#ifdef CONFIG_SBUS
25152515
else if (strcmp(fore200e->bus->model_name, "SBA-200E") == 0)
2516-
device = &((struct of_device *) fore200e->bus_dev)->dev;
2516+
device = &((struct platform_device *) fore200e->bus_dev)->dev;
25172517
#endif
25182518
else
25192519
return err;
@@ -2643,7 +2643,7 @@ fore200e_init(struct fore200e* fore200e)
26432643
}
26442644

26452645
#ifdef CONFIG_SBUS
2646-
static int __devinit fore200e_sba_probe(struct of_device *op,
2646+
static int __devinit fore200e_sba_probe(struct platform_device *op,
26472647
const struct of_device_id *match)
26482648
{
26492649
const struct fore200e_bus *bus = match->data;
@@ -2675,7 +2675,7 @@ static int __devinit fore200e_sba_probe(struct of_device *op,
26752675
return 0;
26762676
}
26772677

2678-
static int __devexit fore200e_sba_remove(struct of_device *op)
2678+
static int __devexit fore200e_sba_remove(struct platform_device *op)
26792679
{
26802680
struct fore200e *fore200e = dev_get_drvdata(&op->dev);
26812681

‎drivers/block/xsysace.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ static struct platform_driver ace_platform_driver = {
11941194

11951195
#if defined(CONFIG_OF)
11961196
static int __devinit
1197-
ace_of_probe(struct of_device *op, const struct of_device_id *match)
1197+
ace_of_probe(struct platform_device *op, const struct of_device_id *match)
11981198
{
11991199
struct resource res;
12001200
resource_size_t physaddr;
@@ -1226,7 +1226,7 @@ ace_of_probe(struct of_device *op, const struct of_device_id *match)
12261226
return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width);
12271227
}
12281228

1229-
static int __devexit ace_of_remove(struct of_device *op)
1229+
static int __devexit ace_of_remove(struct platform_device *op)
12301230
{
12311231
ace_free(&op->dev);
12321232
return 0;

‎drivers/char/hw_random/n2-drv.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static void __devinit n2rng_driver_version(void)
619619
pr_info("%s", version);
620620
}
621621

622-
static int __devinit n2rng_probe(struct of_device *op,
622+
static int __devinit n2rng_probe(struct platform_device *op,
623623
const struct of_device_id *match)
624624
{
625625
int victoria_falls = (match->data != NULL);
@@ -714,7 +714,7 @@ static int __devinit n2rng_probe(struct of_device *op,
714714
return err;
715715
}
716716

717-
static int __devexit n2rng_remove(struct of_device *op)
717+
static int __devexit n2rng_remove(struct platform_device *op)
718718
{
719719
struct n2rng *np = dev_get_drvdata(&op->dev);
720720

‎drivers/char/hw_random/n2rng.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct n2rng_unit {
6565
};
6666

6767
struct n2rng {
68-
struct of_device *op;
68+
struct platform_device *op;
6969

7070
unsigned long flags;
7171
#define N2RNG_FLAG_VF 0x00000001 /* Victoria Falls RNG, else N2 */

0 commit comments

Comments
 (0)