aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_l3_noc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/omap_l3_noc.c')
-rw-r--r--arch/arm/mach-omap2/omap_l3_noc.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/arch/arm/mach-omap2/omap_l3_noc.c
index cf237dd4dba5..1f68e95c3e80 100644
--- a/arch/arm/mach-omap2/omap_l3_noc.c
+++ b/arch/arm/mach-omap2/omap_l3_noc.c
@@ -1,25 +1,25 @@
1/* 1/*
2 * OMAP4XXX L3 Interconnect error handling driver 2 * OMAP4XXX L3 Interconnect error handling driver
3 * 3 *
4 * Copyright (C) 2011 Texas Corporation 4 * Copyright (C) 2011 Texas Corporation
5 * Santosh Shilimkar <santosh.shilimkar@ti.com> 5 * Santosh Shilimkar <santosh.shilimkar@ti.com>
6 * Sricharan <r.sricharan@ti.com> 6 * Sricharan <r.sricharan@ti.com>
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or 10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version. 11 * (at your option) any later version.
12 * 12 *
13 * This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 * USA 21 * USA
22 */ 22 */
23#include <linux/init.h> 23#include <linux/init.h>
24#include <linux/io.h> 24#include <linux/io.h>
25#include <linux/platform_device.h> 25#include <linux/platform_device.h>
@@ -55,7 +55,7 @@
55static irqreturn_t l3_interrupt_handler(int irq, void *_l3) 55static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
56{ 56{
57 57
58 struct omap4_l3 *l3 = _l3; 58 struct omap4_l3 *l3 = _l3;
59 int inttype, i; 59 int inttype, i;
60 int err_src = 0; 60 int err_src = 0;
61 u32 std_err_main, err_reg, clear, base, l3_targ_base; 61 u32 std_err_main, err_reg, clear, base, l3_targ_base;
@@ -122,7 +122,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
122 122
123static int __init omap4_l3_probe(struct platform_device *pdev) 123static int __init omap4_l3_probe(struct platform_device *pdev)
124{ 124{
125 static struct omap4_l3 *l3; 125 static struct omap4_l3 *l3;
126 struct resource *res; 126 struct resource *res;
127 int ret; 127 int ret;
128 128
@@ -182,7 +182,7 @@ static int __init omap4_l3_probe(struct platform_device *pdev)
182 IRQF_DISABLED, "l3-dbg-irq", l3); 182 IRQF_DISABLED, "l3-dbg-irq", l3);
183 if (ret) { 183 if (ret) {
184 pr_crit("L3: request_irq failed to register for 0x%x\n", 184 pr_crit("L3: request_irq failed to register for 0x%x\n",
185 OMAP44XX_IRQ_L3_DBG); 185 OMAP44XX_IRQ_L3_DBG);
186 goto err3; 186 goto err3;
187 } 187 }
188 188
@@ -192,7 +192,7 @@ static int __init omap4_l3_probe(struct platform_device *pdev)
192 IRQF_DISABLED, "l3-app-irq", l3); 192 IRQF_DISABLED, "l3-app-irq", l3);
193 if (ret) { 193 if (ret) {
194 pr_crit("L3: request_irq failed to register for 0x%x\n", 194 pr_crit("L3: request_irq failed to register for 0x%x\n",
195 OMAP44XX_IRQ_L3_APP); 195 OMAP44XX_IRQ_L3_APP);
196 goto err4; 196 goto err4;
197 } 197 }
198 198
@@ -213,7 +213,7 @@ err0:
213 213
214static int __exit omap4_l3_remove(struct platform_device *pdev) 214static int __exit omap4_l3_remove(struct platform_device *pdev)
215{ 215{
216 struct omap4_l3 *l3 = platform_get_drvdata(pdev); 216 struct omap4_l3 *l3 = platform_get_drvdata(pdev);
217 217
218 free_irq(l3->app_irq, l3); 218 free_irq(l3->app_irq, l3);
219 free_irq(l3->debug_irq, l3); 219 free_irq(l3->debug_irq, l3);
@@ -226,9 +226,9 @@ static int __exit omap4_l3_remove(struct platform_device *pdev)
226} 226}
227 227
228static struct platform_driver omap4_l3_driver = { 228static struct platform_driver omap4_l3_driver = {
229 .remove = __exit_p(omap4_l3_remove), 229 .remove = __exit_p(omap4_l3_remove),
230 .driver = { 230 .driver = {
231 .name = "omap_l3_noc", 231 .name = "omap_l3_noc",
232 }, 232 },
233}; 233};
234 234