summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/ahb.c
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2014-11-09 13:32:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-27 06:38:37 +0300
commitd32394fae95741d733b174ec1446f27765f80233 (patch)
treeaa7c7e723323e3c13acf6922a08879501b4374d5 /drivers/net/wireless/ath/ath9k/ahb.c
parent631bee257bd506ad6622aac16dfeedce09034ade (diff)
downloadlinux-d32394fae95741d733b174ec1446f27765f80233.tar.xz
ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
Use the helper to get rid of the file operations per debugfs file. The struct ath9k_softc pointer is set as device driver data to be obtained in the seq_file read operation. Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ahb.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ahb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c
index e000c4c27881..750a13045458 100644
--- a/drivers/net/wireless/ath/ath9k/ahb.c
+++ b/drivers/net/wireless/ath/ath9k/ahb.c
@@ -126,6 +126,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
sc = hw->priv;
sc->hw = hw;
sc->dev = &pdev->dev;
+ dev_set_drvdata(sc->dev, sc);
sc->mem = mem;
sc->irq = irq;