diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 20:03:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-14 08:42:24 +0100 |
commit | 1a66a775674e3ae940e68c95e42dbad75af77523 (patch) | |
tree | a173a07320e49344cb72fc8989e95069891ccd39 /include/driver.h | |
parent | 7a76f0607bef50e4439d162e577007aa74f51a5f (diff) | |
download | barebox-1a66a775674e3ae940e68c95e42dbad75af77523.tar.gz barebox-1a66a775674e3ae940e68c95e42dbad75af77523.tar.xz |
bus: Make struct device a pointer
struct bus_type contains an embedded struct device_d which is quite
a big structure. Dynamically allocate this instead to save the space
in the binary.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r-- | include/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index 46c56c0acf..2d107e1ca7 100644 --- a/include/driver.h +++ b/include/driver.h @@ -368,7 +368,7 @@ struct bus_type { int (*probe)(struct device_d *dev); void (*remove)(struct device_d *dev); - struct device_d dev; + struct device_d *dev; struct list_head list; struct list_head device_list; |