@@ -674,7 +674,7 @@ static void fore200e_sba_write(u32 val, volatile u32 __iomem *addr)
674674
675675static 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
688688static 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
698698static 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
707707static 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_
719719static 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 */
739739static 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
771771static 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
801801static 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
817817static 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
841841static 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
0 commit comments