projects/linux·commit 25cdcd00

make pnp_add_card_id() static

25cdcd00 · Adrian Bunk <[email protected]> · 2008-07-25 19:46:21 -07:00

pnp_add_card_id() can now become static.

Signed-off-by: Adrian Bunk <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Rene Herman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
25cdcd0086d97a011fcd0c1ff572e30da24790ec
Parents
96930a63

Changes

2 files changed · +1 −2

FileStatusAddDelContent
drivers/pnp/base.hmodified+0−1View file
drivers/pnp/card.cmodified+1−1View file

drivers/pnp/base.h

View file
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index e3fa9a2..9fd7bb9 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -19,7 +19,6 @@ struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id);
int pnp_interface_attach_device(struct pnp_dev *dev);
int pnp_add_card(struct pnp_card *card);
-struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id);
void pnp_remove_card(struct pnp_card *card);
int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev);
void pnp_remove_card_device(struct pnp_dev *dev);

drivers/pnp/card.c

View file
diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c
index b00ef10..e75b060 100644
--- a/drivers/pnp/card.c
+++ b/drivers/pnp/card.c
@@ -102,7 +102,7 @@ static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv)
* @id: pointer to a pnp_id structure
* @card: pointer to the desired card
*/
-struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id)
+static struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id)
{
struct pnp_id *dev_id, *ptr;