PNP: add pnp_alloc_card()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:33:58 +0000 (16:33 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:17 +0000 (03:22 -0400)
commit6bf2aab24a5dc26bf8274c4b9dbbed8ca99ae82c
tree910e6795cf929481cecb00fc5ebad43121beba56
parent068076d5517009654376ceda75ff44af0feb9b1d
PNP: add pnp_alloc_card()

Add pnp_alloc_card() to allocate a struct pnp_card and fill in the
protocol, instance number, and initial PNP ID.  Now it is always
valid to use dev_printk() on any pnp_card pointer.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/base.h
drivers/pnp/card.c
drivers/pnp/isapnp/core.c