Skip to content

Commit

Permalink
[PATCH] PCI: drivers/pci/: small cleanups
Browse files Browse the repository at this point in the history
This patch contains the following cleanups:
- access.c should #include "pci.h" for getting the prototypes of it's
  global functions
- hotplug/shpchp_pci.c: make the needlessly global function
  program_fw_provided_values() static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Nov 11, 2005
1 parent 26205e0 commit 48b1914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/pci/access.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <linux/module.h>
#include <linux/ioport.h>

#include "pci.h"

/*
* This interrupt-safe spinlock protects all accesses to PCI
* configuration space.
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/shpchp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "../pci.h"
#include "shpchp.h"

void program_fw_provided_values(struct pci_dev *dev)
static void program_fw_provided_values(struct pci_dev *dev)
{
u16 pci_cmd, pci_bctl;
struct pci_dev *cdev;
Expand Down

0 comments on commit 48b1914

Please sign in to comment.