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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
631bee257b
commit
d32394fae9
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user