aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2010-05-05 10:11:15 -0400
committerEric Miao <eric.y.miao@gmail.com>2010-05-11 11:25:06 -0400
commitbaffe1699c68da5040de6b274054adc995795782 (patch)
treecdb8a8b80ffb7d8d14b80305c38af650a9842abf /arch/arm
parent2503991a56483dc8477a3c6ca86da253eb5f8af9 (diff)
[ARM] pxa: add namespace on ssp
In order to prevent code ambiguous, add namespace on functions in ssp driver. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-pxa/include/plat/ssp.h12
-rw-r--r--arch/arm/plat-pxa/ssp.c22
2 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/plat-pxa/include/plat/ssp.h b/arch/arm/plat-pxa/include/plat/ssp.h
index d16d79a3a48a..fe43150690ed 100644
--- a/arch/arm/plat-pxa/include/plat/ssp.h
+++ b/arch/arm/plat-pxa/include/plat/ssp.h
@@ -159,28 +159,28 @@ struct ssp_device {
159}; 159};
160 160
161/** 161/**
162 * ssp_write_reg - Write to a SSP register 162 * pxa_ssp_write_reg - Write to a SSP register
163 * 163 *
164 * @dev: SSP device to access 164 * @dev: SSP device to access
165 * @reg: Register to write to 165 * @reg: Register to write to
166 * @val: Value to be written. 166 * @val: Value to be written.
167 */ 167 */
168static inline void ssp_write_reg(struct ssp_device *dev, u32 reg, u32 val) 168static inline void pxa_ssp_write_reg(struct ssp_device *dev, u32 reg, u32 val)
169{ 169{
170 __raw_writel(val, dev->mmio_base + reg); 170 __raw_writel(val, dev->mmio_base + reg);
171} 171}
172 172
173/** 173/**
174 * ssp_read_reg - Read from a SSP register 174 * pxa_ssp_read_reg - Read from a SSP register
175 * 175 *
176 * @dev: SSP device to access 176 * @dev: SSP device to access
177 * @reg: Register to read from 177 * @reg: Register to read from
178 */ 178 */
179static inline u32 ssp_read_reg(struct ssp_device *dev, u32 reg) 179static inline u32 pxa_ssp_read_reg(struct ssp_device *dev, u32 reg)
180{ 180{
181 return __raw_readl(dev->mmio_base + reg); 181 return __raw_readl(dev->mmio_base + reg);
182} 182}
183 183
184struct ssp_device *ssp_request(int port, const char *label); 184struct ssp_device *pxa_ssp_request(int port, const char *label);
185void ssp_free(struct ssp_device *); 185void pxa_ssp_free(struct ssp_device *);
186#endif /* __ASM_ARCH_SSP_H */ 186#endif /* __ASM_ARCH_SSP_H */
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 52c07cc756d7..c6357e554aba 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -37,7 +37,7 @@
37static DEFINE_MUTEX(ssp_lock); 37static DEFINE_MUTEX(ssp_lock);
38static LIST_HEAD(ssp_list); 38static LIST_HEAD(ssp_list);
39 39
40struct ssp_device *ssp_request(int port, const char *label) 40struct ssp_device *pxa_ssp_request(int port, const char *label)
41{ 41{
42 struct ssp_device *ssp = NULL; 42 struct ssp_device *ssp = NULL;
43 43
@@ -58,9 +58,9 @@ struct ssp_device *ssp_request(int port, const char *label)
58 58
59 return ssp; 59 return ssp;
60} 60}
61EXPORT_SYMBOL(ssp_request); 61EXPORT_SYMBOL(pxa_ssp_request);
62 62
63void ssp_free(struct ssp_device *ssp) 63void pxa_ssp_free(struct ssp_device *ssp)
64{ 64{
65 mutex_lock(&ssp_lock); 65 mutex_lock(&ssp_lock);
66 if (ssp->use_count) { 66 if (ssp->use_count) {
@@ -70,9 +70,9 @@ void ssp_free(struct ssp_device *ssp)
70 dev_err(&ssp->pdev->dev, "device already free\n"); 70 dev_err(&ssp->pdev->dev, "device already free\n");
71 mutex_unlock(&ssp_lock); 71 mutex_unlock(&ssp_lock);
72} 72}
73EXPORT_SYMBOL(ssp_free); 73EXPORT_SYMBOL(pxa_ssp_free);
74 74
75static int __devinit ssp_probe(struct platform_device *pdev) 75static int __devinit pxa_ssp_probe(struct platform_device *pdev)
76{ 76{
77 const struct platform_device_id *id = platform_get_device_id(pdev); 77 const struct platform_device_id *id = platform_get_device_id(pdev);
78 struct resource *res; 78 struct resource *res;
@@ -164,7 +164,7 @@ err_free:
164 return ret; 164 return ret;
165} 165}
166 166
167static int __devexit ssp_remove(struct platform_device *pdev) 167static int __devexit pxa_ssp_remove(struct platform_device *pdev)
168{ 168{
169 struct resource *res; 169 struct resource *res;
170 struct ssp_device *ssp; 170 struct ssp_device *ssp;
@@ -196,9 +196,9 @@ static const struct platform_device_id ssp_id_table[] = {
196 { }, 196 { },
197}; 197};
198 198
199static struct platform_driver ssp_driver = { 199static struct platform_driver pxa_ssp_driver = {
200 .probe = ssp_probe, 200 .probe = pxa_ssp_probe,
201 .remove = __devexit_p(ssp_remove), 201 .remove = __devexit_p(pxa_ssp_remove),
202 .driver = { 202 .driver = {
203 .owner = THIS_MODULE, 203 .owner = THIS_MODULE,
204 .name = "pxa2xx-ssp", 204 .name = "pxa2xx-ssp",
@@ -208,12 +208,12 @@ static struct platform_driver ssp_driver = {
208 208
209static int __init pxa_ssp_init(void) 209static int __init pxa_ssp_init(void)
210{ 210{
211 return platform_driver_register(&ssp_driver); 211 return platform_driver_register(&pxa_ssp_driver);
212} 212}
213 213
214static void __exit pxa_ssp_exit(void) 214static void __exit pxa_ssp_exit(void)
215{ 215{
216 platform_driver_unregister(&ssp_driver); 216 platform_driver_unregister(&pxa_ssp_driver);
217} 217}
218 218
219arch_initcall(pxa_ssp_init); 219arch_initcall(pxa_ssp_init);