summaryrefslogtreecommitdiffstats
path: root/sys/dev/mly
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
committerphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
commitdfd1f7fd50fffaf75541921fcf86454cd8eb3614 (patch)
tree624c885995e84df6decddd3291c60a15e50e3c85 /sys/dev/mly
parentcafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (diff)
downloadFreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.zip
FreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.tar.gz
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Diffstat (limited to 'sys/dev/mly')
-rw-r--r--sys/dev/mly/mly.c6
-rw-r--r--sys/dev/mly/mlyvar.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index eb035d0..2e36816 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -2826,7 +2826,7 @@ mly_print_controller(int controller)
* Accept an open operation on the control device.
*/
static int
-mly_user_open(dev_t dev, int flags, int fmt, struct thread *td)
+mly_user_open(struct cdev *dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
struct mly_softc *sc = devclass_get_softc(devclass_find("mly"), unit);
@@ -2839,7 +2839,7 @@ mly_user_open(dev_t dev, int flags, int fmt, struct thread *td)
* Accept the last close on the control device.
*/
static int
-mly_user_close(dev_t dev, int flags, int fmt, struct thread *td)
+mly_user_close(struct cdev *dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
struct mly_softc *sc = devclass_get_softc(devclass_find("mly"), unit);
@@ -2852,7 +2852,7 @@ mly_user_close(dev_t dev, int flags, int fmt, struct thread *td)
* Handle controller-specific control operations.
*/
static int
-mly_user_ioctl(dev_t dev, u_long cmd, caddr_t addr,
+mly_user_ioctl(struct cdev *dev, u_long cmd, caddr_t addr,
int32_t flag, struct thread *td)
{
struct mly_softc *sc = (struct mly_softc *)dev->si_drv1;
diff --git a/sys/dev/mly/mlyvar.h b/sys/dev/mly/mlyvar.h
index c994d42..e1c7a50 100644
--- a/sys/dev/mly/mlyvar.h
+++ b/sys/dev/mly/mlyvar.h
@@ -165,7 +165,7 @@ struct mly_command {
struct mly_softc {
/* bus connections */
device_t mly_dev;
- dev_t mly_dev_t;
+ struct cdev *mly_dev_t;
struct resource *mly_regs_resource; /* register interface window */
int mly_regs_rid; /* resource ID */
bus_space_handle_t mly_bhandle; /* bus space handle */
OpenPOWER on IntegriCloud