git: 332f00cdbafa - main - ti/am335x: Fix the device_set_descf() call in am335x_dmtimer_probe()

From: Oskar Holmlund <oh_at_FreeBSD.org>
Date: Mon, 24 Jun 2024 13:22:37 UTC
The branch main has been updated by oh:

URL: https://cgit.FreeBSD.org/src/commit/?id=332f00cdbafa944472a5c2d9d1701466ab762f90

commit 332f00cdbafa944472a5c2d9d1701466ab762f90
Author:     Oskar Holmlund <oh@FreeBSD.org>
AuthorDate: 2024-06-24 11:57:25 +0000
Commit:     Oskar Holmlund <oh@FreeBSD.org>
CommitDate: 2024-06-24 11:57:25 +0000

    ti/am335x: Fix the device_set_descf() call in am335x_dmtimer_probe()
    
    Fixes: 459dc61c8b05 ("arm: Convert drivers to use device_set_desc(f)()")
    
    Reviewed by:    markj, imp, manu
    Approved by:    markj, imp, manu (mentor)
    Differential Revision:  https://reviews.freebsd.org/D45699
---
 sys/arm/ti/am335x/am335x_dmtimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm/ti/am335x/am335x_dmtimer.c b/sys/arm/ti/am335x/am335x_dmtimer.c
index fde5f04875cc..7b97e0f611f9 100644
--- a/sys/arm/ti/am335x/am335x_dmtimer.c
+++ b/sys/arm/ti/am335x/am335x_dmtimer.c
@@ -275,7 +275,7 @@ am335x_dmtimer_probe(device_t dev)
 			return (ENXIO);
 	}
 
-	device_set_descf("AM335x DMTimer%d", tmr_num);
+	device_set_descf(dev, "AM335x DMTimer%d", tmr_num);
 
 	return(BUS_PROBE_DEFAULT);
 }