Skip to content

Commit

Permalink
dma: mv_xor: rename many symbols to remove the 'shared' word
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tpetazzoni committed Nov 20, 2012
1 parent 0dddee7 commit 6197165
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions drivers/dma/mv_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ static int mv_xor_channel_remove(struct mv_xor_device *device)
}

static struct mv_xor_device *
mv_xor_channel_add(struct mv_xor_shared_private *msp,
mv_xor_channel_add(struct mv_xor_private *msp,
struct platform_device *pdev,
int hw_id, dma_cap_mask_t cap_mask,
size_t pool_size, int irq)
Expand Down Expand Up @@ -1220,7 +1220,7 @@ mv_xor_channel_add(struct mv_xor_shared_private *msp,
}

static void
mv_xor_conf_mbus_windows(struct mv_xor_shared_private *msp,
mv_xor_conf_mbus_windows(struct mv_xor_private *msp,
const struct mbus_dram_target_info *dram)
{
void __iomem *base = msp->xor_base;
Expand Down Expand Up @@ -1250,15 +1250,15 @@ mv_xor_conf_mbus_windows(struct mv_xor_shared_private *msp,
writel(win_enable, base + WINDOW_BAR_ENABLE(1));
}

static int mv_xor_shared_probe(struct platform_device *pdev)
static int mv_xor_probe(struct platform_device *pdev)
{
const struct mbus_dram_target_info *dram;
struct mv_xor_shared_private *msp;
struct mv_xor_private *msp;
struct mv_xor_platform_data *pdata = pdev->dev.platform_data;
struct resource *res;
int i, ret;

dev_notice(&pdev->dev, "Marvell shared XOR driver\n");
dev_notice(&pdev->dev, "Marvell XOR driver\n");

msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL);
if (!msp)
Expand Down Expand Up @@ -1338,9 +1338,9 @@ static int mv_xor_shared_probe(struct platform_device *pdev)
return ret;
}

static int mv_xor_shared_remove(struct platform_device *pdev)
static int mv_xor_remove(struct platform_device *pdev)
{
struct mv_xor_shared_private *msp = platform_get_drvdata(pdev);
struct mv_xor_private *msp = platform_get_drvdata(pdev);
int i;

for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) {
Expand All @@ -1356,9 +1356,9 @@ static int mv_xor_shared_remove(struct platform_device *pdev)
return 0;
}

static struct platform_driver mv_xor_shared_driver = {
.probe = mv_xor_shared_probe,
.remove = mv_xor_shared_remove,
static struct platform_driver mv_xor_driver = {
.probe = mv_xor_probe,
.remove = mv_xor_remove,
.driver = {
.owner = THIS_MODULE,
.name = MV_XOR_NAME,
Expand All @@ -1368,15 +1368,15 @@ static struct platform_driver mv_xor_shared_driver = {

static int __init mv_xor_init(void)
{
return platform_driver_register(&mv_xor_shared_driver);
return platform_driver_register(&mv_xor_driver);
}
module_init(mv_xor_init);

/* it's currently unsafe to unload this module */
#if 0
static void __exit mv_xor_exit(void)
{
platform_driver_unregister(&mv_xor_shared_driver);
platform_driver_unregister(&mv_xor_driver);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/dma/mv_xor.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#define WINDOW_REMAP_HIGH(w) (0x290 + ((w) << 2))
#define WINDOW_BAR_ENABLE(chan) (0x240 + ((chan) << 2))

struct mv_xor_shared_private {
struct mv_xor_private {
void __iomem *xor_base;
void __iomem *xor_high_base;
struct clk *clk;
Expand All @@ -76,7 +76,7 @@ struct mv_xor_device {
void *dma_desc_pool_virt;
size_t pool_size;
struct dma_device common;
struct mv_xor_shared_private *shared;
struct mv_xor_private *shared;
};

/**
Expand Down

0 comments on commit 6197165

Please sign in to comment.