summaryrefslogtreecommitdiffstats
path: root/drivers/dma/bcm-sba-raid.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/bcm-sba-raid.c')
-rw-r--r--drivers/dma/bcm-sba-raid.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c
index fa81d0177765..275e90fa829d 100644
--- a/drivers/dma/bcm-sba-raid.c
+++ b/drivers/dma/bcm-sba-raid.c
@@ -164,7 +164,6 @@ struct sba_device {
164 struct list_head reqs_free_list; 164 struct list_head reqs_free_list;
165 /* DebugFS directory entries */ 165 /* DebugFS directory entries */
166 struct dentry *root; 166 struct dentry *root;
167 struct dentry *stats;
168}; 167};
169 168
170/* ====== Command helper routines ===== */ 169/* ====== Command helper routines ===== */
@@ -1716,17 +1715,11 @@ static int sba_probe(struct platform_device *pdev)
1716 1715
1717 /* Create debugfs root entry */ 1716 /* Create debugfs root entry */
1718 sba->root = debugfs_create_dir(dev_name(sba->dev), NULL); 1717 sba->root = debugfs_create_dir(dev_name(sba->dev), NULL);
1719 if (IS_ERR_OR_NULL(sba->root)) {
1720 dev_err(sba->dev, "failed to create debugfs root entry\n");
1721 sba->root = NULL;
1722 goto skip_debugfs;
1723 }
1724 1718
1725 /* Create debugfs stats entry */ 1719 /* Create debugfs stats entry */
1726 sba->stats = debugfs_create_devm_seqfile(sba->dev, "stats", sba->root, 1720 debugfs_create_devm_seqfile(sba->dev, "stats", sba->root,
1727 sba_debugfs_stats_show); 1721 sba_debugfs_stats_show);
1728 if (IS_ERR_OR_NULL(sba->stats)) 1722
1729 dev_err(sba->dev, "failed to create debugfs stats file\n");
1730skip_debugfs: 1723skip_debugfs:
1731 1724
1732 /* Register DMA device with Linux async framework */ 1725 /* Register DMA device with Linux async framework */