diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:14 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:14 +0200 |
commit | b2c5310d4da56237571bb8ea8d24b030c941030f (patch) | |
tree | c2c39f8c1ebdad8c3e69af86cb3c105434212edd /lib/global.c | |
parent | fda840672d0eb662ddf4c7080532fe2dfeb0b0b1 (diff) | |
download | barebox-b2c5310d4da56237571bb8ea8d24b030c941030f.tar.gz barebox-b2c5310d4da56237571bb8ea8d24b030c941030f.tar.xz |
svn_rev_653
restructure tree, add reginfo command
Diffstat (limited to 'lib/global.c')
-rw-r--r-- | lib/global.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/global.c b/lib/global.c deleted file mode 100644 index 2d7544b8fd..0000000000 --- a/lib/global.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <common.h> -#include <command.h> -#include <init.h> -#include <driver.h> -#include <malloc.h> -#include <errno.h> - -static struct device_d global_dev; - -int global_add_param(struct param_d *param) -{ - return dev_add_param(&global_dev, param); -} - -static struct device_d global_dev = { - .name = "global", - .id = "env", - .map_base = 0, - .size = 0, -}; - -static struct driver_d global_driver = { - .name = "global", - .probe = dummy_probe, -}; - -static int global_init(void) -{ - register_device(&global_dev); - register_driver(&global_driver); - return 0; -} - -coredevice_initcall(global_init); - |