Skip to content

Commit

Permalink
Add PNP info to PCI attachment of MPS driver
Browse files Browse the repository at this point in the history
Reviewed by: imp, chuck
Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com>
Sponsored by: Google, Inc. (GSoC 2018)
Pull Request: #11
Url: https://reviews.freebsd.org/D16363
  • Loading branch information
lakhanshiva authored and bsdimp committed Aug 13, 2018
1 parent 52ef8b0 commit c033bf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/dev/mps/mps_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ static driver_t mps_pci_driver = {
sizeof(struct mps_softc)
};

static devclass_t mps_devclass;
DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0);
MODULE_DEPEND(mps, cam, 1, 1, 1);

struct mps_ident {
uint16_t vendor;
uint16_t device;
Expand Down Expand Up @@ -147,6 +143,10 @@ struct mps_ident {
{ 0, 0, 0, 0, 0, NULL }
};

static devclass_t mps_devclass;
DRIVER_MODULE(mps, pci, mps_pci_driver, mps_devclass, 0, 0);
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice", pci, mps,
mps_identifiers, sizeof(mps_identifiers[0]), nitems(mps_identifiers) - 1);
static struct mps_ident *
mps_find_ident(device_t dev)
{
Expand Down

0 comments on commit c033bf4

Please sign in to comment.