perf tools: Fix build error on read only source.
[sfrench/cifs-2.6.git] / sound / sparc / dbri.c
index c421901c48d0f40286da25ae42425e528afc8767..39cd5d69d051a413c6ad77305fef201acfd37605 100644 (file)
@@ -299,7 +299,7 @@ struct dbri_streaminfo {
 /* This structure holds the information for both chips (DBRI & CS4215) */
 struct snd_dbri {
        int regs_size, irq;     /* Needed for unload */
-       struct of_device *op;   /* OF device info */
+       struct platform_device *op;     /* OF device info */
        spinlock_t lock;
 
        struct dbri_dma *dma;   /* Pointer to our DMA block */
@@ -2523,7 +2523,7 @@ static void __devinit snd_dbri_proc(struct snd_card *card)
 static void snd_dbri_free(struct snd_dbri *dbri);
 
 static int __devinit snd_dbri_create(struct snd_card *card,
-                                    struct of_device *op,
+                                    struct platform_device *op,
                                     int irq, int dev)
 {
        struct snd_dbri *dbri = card->private_data;
@@ -2592,7 +2592,7 @@ static void snd_dbri_free(struct snd_dbri *dbri)
                                  (void *)dbri->dma, dbri->dma_dvma);
 }
 
-static int __devinit dbri_probe(struct of_device *op, const struct of_device_id *match)
+static int __devinit dbri_probe(struct platform_device *op, const struct of_device_id *match)
 {
        struct snd_dbri *dbri;
        struct resource *rp;
@@ -2662,7 +2662,7 @@ _err:
        return err;
 }
 
-static int __devexit dbri_remove(struct of_device *op)
+static int __devexit dbri_remove(struct platform_device *op)
 {
        struct snd_card *card = dev_get_drvdata(&op->dev);