amba_{g,s}et_drvdata macros from linux kernel use dev_{g,s}et_drvdata functions. But in linux dev_get_drvdata() takes only one argument while in barebox dev_get_drvdata() takes two arguments. There is no dev_set_drvdata() in barebox at all. So amba_{g,s}et_drvdata macros from linux are unusable for barebox. Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> --- include/linux/amba/bus.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index a7bbae0..2ecef35 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -60,9 +60,6 @@ extern struct bus_type amba_bustype; #define to_amba_device(d) container_of(d, struct amba_device, dev) -#define amba_get_drvdata(d) dev_get_drvdata(&d->dev) -#define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) - int amba_driver_register(struct amba_driver *); void amba_driver_unregister(struct amba_driver *); struct amba_device *amba_device_alloc(const char *, int id, resource_size_t, size_t); -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox