ioremap.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) | ioremap.c (1ec9db1056b0c4b8b9dfca4736634c7c8e0833d5) |
---|---|
1/* 2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 9#include <linux/vmalloc.h> 10#include <linux/init.h> 11#include <linux/module.h> 12#include <linux/io.h> 13#include <linux/mm.h> 14#include <linux/slab.h> | 1/* 2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 9#include <linux/vmalloc.h> 10#include <linux/init.h> 11#include <linux/module.h> 12#include <linux/io.h> 13#include <linux/mm.h> 14#include <linux/slab.h> |
15#include <asm/cache.h> | 15#include <linux/cache.h> |
16 17void __iomem *ioremap(unsigned long paddr, unsigned long size) 18{ 19 unsigned long end; 20 21 /* Don't allow wraparound or zero size */ 22 end = paddr + size - 1; 23 if (!size || (end < paddr)) --- 68 unchanged lines hidden --- | 16 17void __iomem *ioremap(unsigned long paddr, unsigned long size) 18{ 19 unsigned long end; 20 21 /* Don't allow wraparound or zero size */ 22 end = paddr + size - 1; 23 if (!size || (end < paddr)) --- 68 unchanged lines hidden --- |