summaryrefslogtreecommitdiff
path: root/sys/dev/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/gpio')
-rw-r--r--sys/dev/gpio/gpioiic.c12
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;