aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-10-30 07:05:40 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 09:58:57 -0500
commit61971656ce72ae40939abd4b23c61976270d2374 (patch)
tree3feb9c898ae91d8e525e67f2a97ae68083ca9764 /drivers/dma
parent0dddee7a7d42192267ebef0fe15be8b296b665c8 (diff)
dma: mv_xor: rename many symbols to remove the 'shared' word
The 'shared' word no longer makes sense in a number of places as we renamed the 'mv_xor_shared' driver to 'mv_xor'. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mv_xor.c24
-rw-r--r--drivers/dma/mv_xor.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 0ed5183eb5a3..49461b6e6eb4 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1097,7 +1097,7 @@ static int mv_xor_channel_remove(struct mv_xor_device *device)
1097} 1097}
1098 1098
1099static struct mv_xor_device * 1099static struct mv_xor_device *
1100mv_xor_channel_add(struct mv_xor_shared_private *msp, 1100mv_xor_channel_add(struct mv_xor_private *msp,
1101 struct platform_device *pdev, 1101 struct platform_device *pdev,
1102 int hw_id, dma_cap_mask_t cap_mask, 1102 int hw_id, dma_cap_mask_t cap_mask,
1103 size_t pool_size, int irq) 1103 size_t pool_size, int irq)
@@ -1220,7 +1220,7 @@ mv_xor_channel_add(struct mv_xor_shared_private *msp,
1220} 1220}
1221 1221
1222static void 1222static void
1223mv_xor_conf_mbus_windows(struct mv_xor_shared_private *msp, 1223mv_xor_conf_mbus_windows(struct mv_xor_private *msp,
1224 const struct mbus_dram_target_info *dram) 1224 const struct mbus_dram_target_info *dram)
1225{ 1225{
1226 void __iomem *base = msp->xor_base; 1226 void __iomem *base = msp->xor_base;
@@ -1250,15 +1250,15 @@ mv_xor_conf_mbus_windows(struct mv_xor_shared_private *msp,
1250 writel(win_enable, base + WINDOW_BAR_ENABLE(1)); 1250 writel(win_enable, base + WINDOW_BAR_ENABLE(1));
1251} 1251}
1252 1252
1253static int mv_xor_shared_probe(struct platform_device *pdev) 1253static int mv_xor_probe(struct platform_device *pdev)
1254{ 1254{
1255 const struct mbus_dram_target_info *dram; 1255 const struct mbus_dram_target_info *dram;
1256 struct mv_xor_shared_private *msp; 1256 struct mv_xor_private *msp;
1257 struct mv_xor_platform_data *pdata = pdev->dev.platform_data; 1257 struct mv_xor_platform_data *pdata = pdev->dev.platform_data;
1258 struct resource *res; 1258 struct resource *res;
1259 int i, ret; 1259 int i, ret;
1260 1260
1261 dev_notice(&pdev->dev, "Marvell shared XOR driver\n"); 1261 dev_notice(&pdev->dev, "Marvell XOR driver\n");
1262 1262
1263 msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL); 1263 msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL);
1264 if (!msp) 1264 if (!msp)
@@ -1338,9 +1338,9 @@ err_channel_add:
1338 return ret; 1338 return ret;
1339} 1339}
1340 1340
1341static int mv_xor_shared_remove(struct platform_device *pdev) 1341static int mv_xor_remove(struct platform_device *pdev)
1342{ 1342{
1343 struct mv_xor_shared_private *msp = platform_get_drvdata(pdev); 1343 struct mv_xor_private *msp = platform_get_drvdata(pdev);
1344 int i; 1344 int i;
1345 1345
1346 for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) { 1346 for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) {
@@ -1356,9 +1356,9 @@ static int mv_xor_shared_remove(struct platform_device *pdev)
1356 return 0; 1356 return 0;
1357} 1357}
1358 1358
1359static struct platform_driver mv_xor_shared_driver = { 1359static struct platform_driver mv_xor_driver = {
1360 .probe = mv_xor_shared_probe, 1360 .probe = mv_xor_probe,
1361 .remove = mv_xor_shared_remove, 1361 .remove = mv_xor_remove,
1362 .driver = { 1362 .driver = {
1363 .owner = THIS_MODULE, 1363 .owner = THIS_MODULE,
1364 .name = MV_XOR_NAME, 1364 .name = MV_XOR_NAME,
@@ -1368,7 +1368,7 @@ static struct platform_driver mv_xor_shared_driver = {
1368 1368
1369static int __init mv_xor_init(void) 1369static int __init mv_xor_init(void)
1370{ 1370{
1371 return platform_driver_register(&mv_xor_shared_driver); 1371 return platform_driver_register(&mv_xor_driver);
1372} 1372}
1373module_init(mv_xor_init); 1373module_init(mv_xor_init);
1374 1374
@@ -1376,7 +1376,7 @@ module_init(mv_xor_init);
1376#if 0 1376#if 0
1377static void __exit mv_xor_exit(void) 1377static void __exit mv_xor_exit(void)
1378{ 1378{
1379 platform_driver_unregister(&mv_xor_shared_driver); 1379 platform_driver_unregister(&mv_xor_driver);
1380 return; 1380 return;
1381} 1381}
1382 1382
diff --git a/drivers/dma/mv_xor.h b/drivers/dma/mv_xor.h
index 686575f6b9f5..7812565b3505 100644
--- a/drivers/dma/mv_xor.h
+++ b/drivers/dma/mv_xor.h
@@ -53,7 +53,7 @@
53#define WINDOW_REMAP_HIGH(w) (0x290 + ((w) << 2)) 53#define WINDOW_REMAP_HIGH(w) (0x290 + ((w) << 2))
54#define WINDOW_BAR_ENABLE(chan) (0x240 + ((chan) << 2)) 54#define WINDOW_BAR_ENABLE(chan) (0x240 + ((chan) << 2))
55 55
56struct mv_xor_shared_private { 56struct mv_xor_private {
57 void __iomem *xor_base; 57 void __iomem *xor_base;
58 void __iomem *xor_high_base; 58 void __iomem *xor_high_base;
59 struct clk *clk; 59 struct clk *clk;
@@ -76,7 +76,7 @@ struct mv_xor_device {
76 void *dma_desc_pool_virt; 76 void *dma_desc_pool_virt;
77 size_t pool_size; 77 size_t pool_size;
78 struct dma_device common; 78 struct dma_device common;
79 struct mv_xor_shared_private *shared; 79 struct mv_xor_private *shared;
80}; 80};
81 81
82/** 82/**