]> git.sur5r.net Git - u-boot/blobdiff - drivers/demo/demo-uclass.c
vitesse: remove duplicated argument to ||
[u-boot] / drivers / demo / demo-uclass.c
index 48588be907444239ddff303f84a24847e67bbdeb..f6510d602c83472695065b66c0f01e55f75b881b 100644 (file)
 DECLARE_GLOBAL_DATA_PTR;
 
 UCLASS_DRIVER(demo) = {
+       .name           = "demo",
        .id             = UCLASS_DEMO,
 };
 
-int demo_hello(struct device *dev, int ch)
+int demo_hello(struct udevice *dev, int ch)
 {
        const struct demo_ops *ops = device_get_ops(dev);
 
@@ -32,7 +33,7 @@ int demo_hello(struct device *dev, int ch)
        return ops->hello(dev, ch);
 }
 
-int demo_status(struct device *dev, int *status)
+int demo_status(struct udevice *dev, int *status)
 {
        const struct demo_ops *ops = device_get_ops(dev);
 
@@ -42,7 +43,7 @@ int demo_status(struct device *dev, int *status)
        return ops->status(dev, status);
 }
 
-int demo_parse_dt(struct device *dev)
+int demo_parse_dt(struct udevice *dev)
 {
        struct dm_demo_pdata *pdata = dev_get_platdata(dev);
        int dn = dev->of_offset;