diff options
author | Arend van Spriel <arend@broadcom.com> | 2014-11-09 10:32:00 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-27 03:38:37 (GMT) |
commit | d32394fae95741d733b174ec1446f27765f80233 (patch) | |
tree | aa7c7e723323e3c13acf6922a08879501b4374d5 /drivers/net/wireless/ath/ath9k/ahb.c | |
parent | 631bee257bd506ad6622aac16dfeedce09034ade (diff) | |
download | linux-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.c | 1 |
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 e000c4c..750a130 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; |