mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
arm: Convert drivers to use device_set_desc(f)()
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
3cc91b7751
commit
459dc61c8b
@ -651,7 +651,7 @@ tegra_ahci_probe(device_t dev)
|
||||
if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data)
|
||||
return (ENXIO);
|
||||
|
||||
device_set_desc_copy(dev, "AHCI SATA controller");
|
||||
device_set_desc(dev, "AHCI SATA controller");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,6 @@ am335x_dmtimer_tc_init(struct am335x_dmtimer_softc *sc)
|
||||
static int
|
||||
am335x_dmtimer_probe(device_t dev)
|
||||
{
|
||||
char strbuf[32];
|
||||
int tmr_num;
|
||||
uint64_t rev_address;
|
||||
|
||||
@ -276,8 +275,7 @@ am335x_dmtimer_probe(device_t dev)
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
snprintf(strbuf, sizeof(strbuf), "AM335x DMTimer%d", tmr_num);
|
||||
device_set_desc_copy(dev, strbuf);
|
||||
device_set_descf("AM335x DMTimer%d", tmr_num);
|
||||
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
}
|
||||
|
@ -383,7 +383,6 @@ static struct cdevsw dmtpps_cdevsw = {
|
||||
static int
|
||||
dmtpps_probe(device_t dev)
|
||||
{
|
||||
char strbuf[64];
|
||||
int tmr_num;
|
||||
uint64_t rev_address;
|
||||
|
||||
@ -435,9 +434,7 @@ dmtpps_probe(device_t dev)
|
||||
if (dmtpps_tmr_num != tmr_num)
|
||||
return (ENXIO);
|
||||
|
||||
snprintf(strbuf, sizeof(strbuf), "AM335x PPS-Capture DMTimer%d",
|
||||
tmr_num);
|
||||
device_set_desc_copy(dev, strbuf);
|
||||
device_set_descf("AM335x PPS-Capture DMTimer%d", tmr_num);
|
||||
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user