mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
hptiop: Use device_set_descf()
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
d254651de3
commit
1c64b3aba3
|
@ -1798,7 +1798,6 @@ static int hptiop_probe(device_t dev)
|
|||
{
|
||||
struct hpt_iop_hba *hba;
|
||||
u_int32_t id;
|
||||
static char buf[256];
|
||||
int sas = 0;
|
||||
struct hptiop_adapter_ops *ops;
|
||||
|
||||
|
@ -1851,9 +1850,8 @@ static int hptiop_probe(device_t dev)
|
|||
pci_get_bus(dev), pci_get_slot(dev),
|
||||
pci_get_function(dev), pci_get_irq(dev));
|
||||
|
||||
sprintf(buf, "RocketRAID %x %s Controller\n",
|
||||
id, sas ? "SAS" : "SATA");
|
||||
device_set_desc_copy(dev, buf);
|
||||
device_set_descf(dev, "RocketRAID %x %s Controller",
|
||||
id, sas ? "SAS" : "SATA");
|
||||
|
||||
hba = (struct hpt_iop_hba *)device_get_softc(dev);
|
||||
bzero(hba, sizeof(struct hpt_iop_hba));
|
||||
|
|
Loading…
Reference in a new issue