summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-21 13:47:16 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-21 13:47:16 +0800
commit6ae6553e1a82923033d940bb44aa5048d78e16d4 (patch)
tree0b74f210438db1879c4252feb7446cf48b725831 /common
parent85283965dc0977496d2159cbe7f25ac3d96187dd (diff)
downloadbarebox-6ae6553e1a82923033d940bb44aa5048d78e16d4.tar.gz
barebox-6ae6553e1a82923033d940bb44aa5048d78e16d4.tar.xz
drivers: move resource generic management to driver/base/resource.c
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common')
-rw-r--r--common/Makefile1
-rw-r--r--common/mem.c46
2 files changed, 0 insertions, 47 deletions
diff --git a/common/Makefile b/common/Makefile
index 27aebae24d..9fed2ae521 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -9,7 +9,6 @@ obj-$(CONFIG_POLLER) += poller.o
obj-$(CONFIG_BLOCK) += block.o
obj-y += memory.o
-obj-y += mem.o
obj-$(CONFIG_MALLOC_DLMALLOC) += dlmalloc.o
obj-$(CONFIG_MALLOC_DUMMY) += dummy_malloc.o
obj-y += clock.o
diff --git a/common/mem.c b/common/mem.c
deleted file mode 100644
index 7b0020bb69..0000000000
--- a/common/mem.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * (C) Copyright 2000
- * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#include <common.h>
-#include <driver.h>
-#include <xfuncs.h>
-
-struct device_d *add_mem_device(const char *name, resource_size_t start,
- resource_size_t size, unsigned int flags)
-{
- struct device_d *dev;
-
- dev = xzalloc(sizeof(*dev));
- strcpy(dev->name, "mem");
- dev->id = -1;
- dev->resource = xzalloc(sizeof(struct resource));
- dev->num_resources = 1;
- dev->resource[0].name = xstrdup(name);
- dev->resource[0].start = start;
- dev->resource[0].size = size;
- dev->resource[0].flags = IORESOURCE_MEM | flags;
-
- register_device(dev);
-
- return dev;
-}