Commit 16f3c8ce authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: User GPLv2 for MMU, make checkpatch.pl happier

This patch changes MMU code to use GPLv2 as requested by
Paul Mundt. It also does some minor formatting to make
checkpatch.pl mostly happy, and removes dummy release
function.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c4730228
......@@ -9,18 +9,8 @@
* and Paul Mundt <paul.mundt@nokia.com>
*
* 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
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/types.h>
#include <linux/init.h>
......@@ -286,7 +276,7 @@ static void omap1_mmu_interrupt(struct omap_mmu *mmu)
/* if the fault is masked, nothing to do */
if ((status & MMUFAULT_MASK) == 0) {
pr_debug( "MMU interrupt, but ignoring.\n");
pr_debug("MMU interrupt, but ignoring.\n");
/*
* note: in OMAP1710,
* when CACHE + DMA domain gets out of idle in DSP,
......@@ -294,16 +284,16 @@ static void omap1_mmu_interrupt(struct omap_mmu *mmu)
* in this case, we just ignore the interrupt.
*/
if (status) {
pr_debug( "%s%s%s%s\n",
(status & OMAP_MMU_FAULT_ST_PREF)?
" (prefetch err)" : "",
(status & OMAP_MMU_FAULT_ST_PERM)?
" (permission fault)" : "",
(status & OMAP_MMU_FAULT_ST_TLB_MISS)?
" (TLB miss)" : "",
(status & OMAP_MMU_FAULT_ST_TRANS) ?
" (translation fault)": "");
pr_debug( "fault address = %#08lx\n", va);
pr_debug("%s%s%s%s\n",
(status & OMAP_MMU_FAULT_ST_PREF)?
" (prefetch err)" : "",
(status & OMAP_MMU_FAULT_ST_PERM)?
" (permission fault)" : "",
(status & OMAP_MMU_FAULT_ST_TLB_MISS)?
" (TLB miss)" : "",
(status & OMAP_MMU_FAULT_ST_TRANS) ?
" (translation fault)": "");
pr_debug("fault address = %#08lx\n", va);
}
enable_irq(mmu->irq);
return;
......
......@@ -76,7 +76,7 @@
#define OMAP_MMU_LD_TLB_RD 0x0002
#define INIT_TLB_ENTRY(ent,v,p,ps) \
#define INIT_TLB_ENTRY(ent, v, p, ps) \
do { \
(ent)->va = (v); \
(ent)->pa = (p); \
......@@ -86,7 +86,7 @@ do { \
(ent)->tlb = 1; \
} while (0)
#define INIT_TLB_ENTRY_4KB_PRESERVED(ent,v,p) \
#define INIT_TLB_ENTRY_4KB_PRESERVED(ent, v, p) \
do { \
(ent)->va = (v); \
(ent)->pa = (p); \
......
......@@ -11,18 +11,8 @@
* TWL support: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
*
* 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
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/types.h>
#include <linux/init.h>
......
......@@ -59,7 +59,7 @@
#define IOMAP_VAL 0x3f
#define INIT_TLB_ENTRY(ent,v,p,ps) \
#define INIT_TLB_ENTRY(ent, v, p, ps) \
do { \
(ent)->va = (v); \
(ent)->pa = (p); \
......@@ -71,7 +71,7 @@ do { \
(ent)->tlb = 1; \
} while (0)
#define INIT_TLB_ENTRY_4KB_PRESERVED(ent,v,p) \
#define INIT_TLB_ENTRY_4KB_PRESERVED(ent, v, p) \
do { \
(ent)->va = (v); \
(ent)->pa = (p); \
......@@ -82,7 +82,7 @@ do { \
(ent)->mixed = 0; \
} while (0)
#define INIT_TLB_ENTRY_4KB_ES32_PRESERVED(ent,v,p) \
#define INIT_TLB_ENTRY_4KB_ES32_PRESERVED(ent, v, p) \
do { \
(ent)->va = (v); \
(ent)->pa = (p); \
......
......@@ -11,18 +11,8 @@
* TWL support: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
*
* 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
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/mempool.h>
......@@ -1466,13 +1456,8 @@ static ssize_t mempool_show(struct class *class, char *buf)
static CLASS_ATTR(mempool, S_IRUGO, mempool_show, NULL);
static void omap_mmu_class_dev_release(struct device *dev)
{
}
static struct class omap_mmu_class = {
.name = "mmu",
.dev_release = omap_mmu_class_dev_release,
};
int omap_mmu_register(struct omap_mmu *mmu)
......
......@@ -5,20 +5,9 @@
*
* Contact: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef ASM_ARCH_DSP_COMMON_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment