From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/net/wireless/ath/ath5k/pci.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/drivers/net/wireless/ath/ath5k/pci.c b/kernel/drivers/net/wireless/ath/ath5k/pci.c
index c6156cc..43b4ae8 100644
--- a/kernel/drivers/net/wireless/ath/ath5k/pci.c
+++ b/kernel/drivers/net/wireless/ath/ath5k/pci.c
@@ -18,7 +18,6 @@
#include <linux/nl80211.h>
#include <linux/pci.h>
-#include <linux/pci-aspm.h>
#include <linux/etherdevice.h>
#include <linux/module.h>
#include "../ath.h"
@@ -301,8 +300,7 @@
#ifdef CONFIG_PM_SLEEP
static int ath5k_pci_suspend(struct device *dev)
{
- struct pci_dev *pdev = to_pci_dev(dev);
- struct ieee80211_hw *hw = pci_get_drvdata(pdev);
+ struct ieee80211_hw *hw = dev_get_drvdata(dev);
struct ath5k_hw *ah = hw->priv;
ath5k_led_off(ah);
--
Gitblit v1.6.2