Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] USB: pci-quirks.c: proper prototypes

This patch adds a header file with proper prototypes for two functions
in drivers/usb/host/pci-quirks.c.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Adrian Bunk and committed by
Greg Kroah-Hartman
75e2df60 1ce7dd26

+9 -3
+1
drivers/usb/host/pci-quirks.c
··· 15 15 #include <linux/init.h> 16 16 #include <linux/delay.h> 17 17 #include <linux/acpi.h> 18 + #include "pci-quirks.h" 18 19 19 20 20 21 #define UHCI_USBLEGSUP 0xc0 /* legacy support */
+7
drivers/usb/host/pci-quirks.h
··· 1 + #ifndef __LINUX_USB_PCI_QUIRKS_H 2 + #define __LINUX_USB_PCI_QUIRKS_H 3 + 4 + void uhci_reset_hc(struct pci_dev *pdev, unsigned long base); 5 + int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base); 6 + 7 + #endif /* __LINUX_USB_PCI_QUIRKS_H */
+1 -3
drivers/usb/host/uhci-hcd.c
··· 50 50 51 51 #include "../core/hcd.h" 52 52 #include "uhci-hcd.h" 53 + #include "pci-quirks.h" 53 54 54 55 /* 55 56 * Version Information ··· 100 99 #include "uhci-debug.c" 101 100 #include "uhci-q.c" 102 101 #include "uhci-hub.c" 103 - 104 - extern void uhci_reset_hc(struct pci_dev *pdev, unsigned long base); 105 - extern int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base); 106 102 107 103 /* 108 104 * Finish up a host controller reset and update the recorded state.