* [PATCH] linux/amba/bus.h: drop unusable amba_{g,s}et_drvdata macros
@ 2015-04-28 5:12 Antony Pavlov
2015-04-28 6:55 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2015-04-28 5:12 UTC (permalink / raw)
To: barebox
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@gmail.com>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] linux/amba/bus.h: drop unusable amba_{g,s}et_drvdata macros
2015-04-28 5:12 [PATCH] linux/amba/bus.h: drop unusable amba_{g,s}et_drvdata macros Antony Pavlov
@ 2015-04-28 6:55 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-04-28 6:55 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Tue, Apr 28, 2015 at 08:12:54AM +0300, Antony Pavlov wrote:
> 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@gmail.com>
> ---
> include/linux/amba/bus.h | 3 ---
> 1 file changed, 3 deletions(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-28 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 5:12 [PATCH] linux/amba/bus.h: drop unusable amba_{g,s}et_drvdata macros Antony Pavlov
2015-04-28 6:55 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox