Quoting "Pavel Roskin" <proski@xxxxxxx>:
On Fri, 2010-05-28 at 13:09 +0300, Jussi Kivilinna wrote:
+static void __ath5k_disable_aspm(struct pci_dev *pdev, u16 state);
+static void ath5k_disable_aspm(struct pci_dev *pdev, u16 state);
Forward declarations should not be needed unless the functions are
called before their implementations, which is not the case here.
Ok.
@@ -424,6 +427,47 @@ module_exit(exit_ath5k_pci);
* PCI Initialization *
\********************/
+#ifdef CONFIG_PCIEASPM
+static void __ath5k_disable_aspm(struct pci_dev *pdev, u16 state)
+{
+ pci_disable_link_state(pdev, state);
+}
+#else
+static void __ath5k_disable_aspm(struct pci_dev *pdev, u16 state)
+{
It looks like a replacement for pci_disable_link_state() if
CONFIG_PCIEASPM is disabled. I guess it should be in the PCI code, not
in ath5k. At least the PCI developers should have a look at the
replacement code.
I used code from e1000e which does this same way, which now suddenly
reminds me of that ath5k is dual lisenced, right? Can I even reuse
code from GPL driver in ath5k?
-Jussi
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html