]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/sbus/char/display7seg.c
of/device: Replace struct of_device with struct platform_device
[karo-tx-linux.git] / drivers / sbus / char / display7seg.c
index 47db97583ea7085ff1c74b6774eaa7a3be174c69..1690e53fb84a80e220f32a1cfb0f066b2f47282e 100644 (file)
@@ -170,7 +170,7 @@ static struct miscdevice d7s_miscdev = {
        .fops           = &d7s_fops
 };
 
-static int __devinit d7s_probe(struct of_device *op,
+static int __devinit d7s_probe(struct platform_device *op,
                               const struct of_device_id *match)
 {
        struct device_node *opts;
@@ -236,7 +236,7 @@ out_free:
        goto out;
 }
 
-static int __devexit d7s_remove(struct of_device *op)
+static int __devexit d7s_remove(struct platform_device *op)
 {
        struct d7s *p = dev_get_drvdata(&op->dev);
        u8 regs = readb(p->regs);