diff options
author | Sricharan R <r.sricharan@ti.com> | 2014-04-11 14:09:36 -0400 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2014-05-05 15:32:45 -0400 |
commit | c10d5c9e1200e2b8c23329173f279caa86c6af45 (patch) | |
tree | 4ff71078a0cae4894123fd9fdc161277302672bf /drivers/bus | |
parent | c5f2aea0ef47b2934b46374abfac9015de79aecb (diff) |
bus: omap_l3_noc: rename functions and data to omap_l3
Since omap_l3_noc driver is now being used for OMAP5 and reusable with
DRA7 and AM437x, using omap4 specific naming is misleading.
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/omap_l3_noc.c | 24 | ||||
-rw-r--r-- | drivers/bus/omap_l3_noc.h | 11 |
2 files changed, 18 insertions, 17 deletions
diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index 1eb6d85c19dc..800486c88cc3 100644 --- a/drivers/bus/omap_l3_noc.c +++ b/drivers/bus/omap_l3_noc.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * OMAP4XXX L3 Interconnect error handling driver | 2 | * OMAP L3 Interconnect error handling driver |
3 | * | 3 | * |
4 | * Copyright (C) 2011-2014 Texas Instruments Incorporated - http://www.ti.com/ | 4 | * Copyright (C) 2011-2014 Texas Instruments Incorporated - http://www.ti.com/ |
5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | 5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> |
@@ -50,7 +50,7 @@ | |||
50 | static irqreturn_t l3_interrupt_handler(int irq, void *_l3) | 50 | static irqreturn_t l3_interrupt_handler(int irq, void *_l3) |
51 | { | 51 | { |
52 | 52 | ||
53 | struct omap4_l3 *l3 = _l3; | 53 | struct omap_l3 *l3 = _l3; |
54 | int inttype, i, k; | 54 | int inttype, i, k; |
55 | int err_src = 0; | 55 | int err_src = 0; |
56 | u32 std_err_main, err_reg, clear, masterid; | 56 | u32 std_err_main, err_reg, clear, masterid; |
@@ -122,9 +122,9 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3) | |||
122 | return IRQ_HANDLED; | 122 | return IRQ_HANDLED; |
123 | } | 123 | } |
124 | 124 | ||
125 | static int omap4_l3_probe(struct platform_device *pdev) | 125 | static int omap_l3_probe(struct platform_device *pdev) |
126 | { | 126 | { |
127 | static struct omap4_l3 *l3; | 127 | static struct omap_l3 *l3; |
128 | int ret, i; | 128 | int ret, i; |
129 | 129 | ||
130 | l3 = devm_kzalloc(&pdev->dev, sizeof(*l3), GFP_KERNEL); | 130 | l3 = devm_kzalloc(&pdev->dev, sizeof(*l3), GFP_KERNEL); |
@@ -176,8 +176,8 @@ MODULE_DEVICE_TABLE(of, l3_noc_match); | |||
176 | #define l3_noc_match NULL | 176 | #define l3_noc_match NULL |
177 | #endif | 177 | #endif |
178 | 178 | ||
179 | static struct platform_driver omap4_l3_driver = { | 179 | static struct platform_driver omap_l3_driver = { |
180 | .probe = omap4_l3_probe, | 180 | .probe = omap_l3_probe, |
181 | .driver = { | 181 | .driver = { |
182 | .name = "omap_l3_noc", | 182 | .name = "omap_l3_noc", |
183 | .owner = THIS_MODULE, | 183 | .owner = THIS_MODULE, |
@@ -185,14 +185,14 @@ static struct platform_driver omap4_l3_driver = { | |||
185 | }, | 185 | }, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | static int __init omap4_l3_init(void) | 188 | static int __init omap_l3_init(void) |
189 | { | 189 | { |
190 | return platform_driver_register(&omap4_l3_driver); | 190 | return platform_driver_register(&omap_l3_driver); |
191 | } | 191 | } |
192 | postcore_initcall_sync(omap4_l3_init); | 192 | postcore_initcall_sync(omap_l3_init); |
193 | 193 | ||
194 | static void __exit omap4_l3_exit(void) | 194 | static void __exit omap_l3_exit(void) |
195 | { | 195 | { |
196 | platform_driver_unregister(&omap4_l3_driver); | 196 | platform_driver_unregister(&omap_l3_driver); |
197 | } | 197 | } |
198 | module_exit(omap4_l3_exit); | 198 | module_exit(omap_l3_exit); |
diff --git a/drivers/bus/omap_l3_noc.h b/drivers/bus/omap_l3_noc.h index cc4b1b1788f0..b3c81f2fe7a2 100644 --- a/drivers/bus/omap_l3_noc.h +++ b/drivers/bus/omap_l3_noc.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * OMAP4XXX L3 Interconnect error handling driver header | 2 | * OMAP L3 Interconnect error handling driver header |
3 | * | 3 | * |
4 | * Copyright (C) 2011-2014 Texas Instruments Incorporated - http://www.ti.com/ | 4 | * Copyright (C) 2011-2014 Texas Instruments Incorporated - http://www.ti.com/ |
5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> | 5 | * Santosh Shilimkar <santosh.shilimkar@ti.com> |
@@ -14,8 +14,8 @@ | |||
14 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. |
16 | */ | 16 | */ |
17 | #ifndef __ARCH_ARM_MACH_OMAP2_L3_INTERCONNECT_3XXX_H | 17 | #ifndef __OMAP_L3_NOC_H |
18 | #define __ARCH_ARM_MACH_OMAP2_L3_INTERCONNECT_3XXX_H | 18 | #define __OMAP_L3_NOC_H |
19 | 19 | ||
20 | #define L3_MODULES 3 | 20 | #define L3_MODULES 3 |
21 | #define CLEAR_STDERR_LOG (1 << 31) | 21 | #define CLEAR_STDERR_LOG (1 << 31) |
@@ -157,7 +157,7 @@ static u32 *l3_targ[L3_MODULES] = { | |||
157 | l3_targ_inst_clk3, | 157 | l3_targ_inst_clk3, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | struct omap4_l3 { | 160 | struct omap_l3 { |
161 | struct device *dev; | 161 | struct device *dev; |
162 | struct clk *ick; | 162 | struct clk *ick; |
163 | 163 | ||
@@ -167,4 +167,5 @@ struct omap4_l3 { | |||
167 | int debug_irq; | 167 | int debug_irq; |
168 | int app_irq; | 168 | int app_irq; |
169 | }; | 169 | }; |
170 | #endif | 170 | |
171 | #endif /* __OMAP_L3_NOC_H */ | ||