diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-02-16 11:36:22 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-18 09:22:17 +0100 |
commit | 927eb757955135c9b88ee4abc5f2ee78edff6bd8 (patch) | |
tree | 360801fc2c28d4317489ed09b6cc3b5cf7265573 | |
parent | bbc0b6bc158b279ec2e4b40dfd15a94cc1530857 (diff) | |
download | barebox-927eb757955135c9b88ee4abc5f2ee78edff6bd8.tar.gz barebox-927eb757955135c9b88ee4abc5f2ee78edff6bd8.tar.xz |
Make "dev_get_resource" publicly available
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/base/driver.c | 2 | ||||
-rw-r--r-- | include/driver.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index d4066fc178..fa30c68059 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -230,7 +230,7 @@ int register_driver(struct driver_d *drv) } EXPORT_SYMBOL(register_driver); -static struct resource *dev_get_resource(struct device_d *dev, int num) +struct resource *dev_get_resource(struct device_d *dev, int num) { int i, n = 0; diff --git a/include/driver.h b/include/driver.h index 151829ef05..46c56c0acf 100644 --- a/include/driver.h +++ b/include/driver.h @@ -193,6 +193,10 @@ static inline const char *dev_name(const struct device_d *dev) } /* + * get resource 'num' for a device + */ +struct resource *dev_get_resource(struct device_d *dev, int num); +/* * get resource base 'name' for a device */ struct resource *dev_get_resource_by_name(struct device_d *dev, |