diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Makefile | 1 | ||||
-rw-r--r-- | common/mem.c | 46 |
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; -} |