diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-17 22:57:48 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-17 22:57:48 +0000 |
commit | 75aafb822c2214f8cbda123e0ab019aac79418c0 (patch) | |
tree | 855a3b666f95d4663e719beaa5105c480bf0310f /sys/dev/gpio | |
parent | ea43e25f43eac73d1e98558b0275de61bb86d231 (diff) |
Make it detachable.
Diffstat (limited to 'sys/dev/gpio')
-rw-r--r-- | sys/dev/gpio/gpioiic.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/gpio/gpioiic.c b/sys/dev/gpio/gpioiic.c index d7516991c02..955f66d05b9 100644 --- a/sys/dev/gpio/gpioiic.c +++ b/sys/dev/gpio/gpioiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpioiic.c,v 1.3 2006/01/15 22:18:48 grange Exp $ */ +/* $OpenBSD: gpioiic.c,v 1.4 2006/01/17 22:57:47 grange Exp $ */ /* * Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> @@ -53,6 +53,7 @@ struct gpioiic_softc { int gpioiic_match(struct device *, void *, void *); void gpioiic_attach(struct device *, struct device *, void *); +int gpioiic_detach(struct device *, int); int gpioiic_i2c_acquire_bus(void *, int); void gpioiic_i2c_release_bus(void *, int); @@ -69,7 +70,8 @@ u_int32_t gpioiic_bb_read_bits(void *); struct cfattach gpioiic_ca = { sizeof(struct gpioiic_softc), gpioiic_match, - gpioiic_attach + gpioiic_attach, + gpioiic_detach }; struct cfdriver gpioiic_cd = { @@ -178,6 +180,12 @@ fail: } int +gpioiic_detach(struct device *self, int flags) +{ + return (0); +} + +int gpioiic_i2c_acquire_bus(void *cookie, int flags) { struct gpioiic_softc *sc = cookie; |