Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158064928
D26431.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26431.id.diff
View Options
Index: head/sys/dev/iicbus/icee.c
===================================================================
--- head/sys/dev/iicbus/icee.c
+++ head/sys/dev/iicbus/icee.c
@@ -113,17 +113,12 @@
#define CDEV2SOFTC(dev) ((dev)->si_drv1)
/* cdev routines */
-static d_open_t icee_open;
-static d_close_t icee_close;
static d_read_t icee_read;
static d_write_t icee_write;
static struct cdevsw icee_cdevsw =
{
.d_version = D_VERSION,
- .d_flags = D_TRACKCLOSE,
- .d_open = icee_open,
- .d_close = icee_close,
.d_read = icee_read,
.d_write = icee_write
};
@@ -227,28 +222,6 @@
struct icee_softc *sc = device_get_softc(dev);
destroy_dev(sc->cdev);
- return (0);
-}
-
-static int
-icee_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
-{
- struct icee_softc *sc;
-
- sc = CDEV2SOFTC(dev);
- if (device_get_state(sc->dev) < DS_BUSY)
- device_busy(sc->dev);
-
- return (0);
-}
-
-static int
-icee_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
-{
- struct icee_softc *sc;
-
- sc = CDEV2SOFTC(dev);
- device_unbusy(sc->dev);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 29, 3:20 AM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33579363
Default Alt Text
D26431.id.diff (1 KB)
Attached To
Mode
D26431: Don't do the busy dance in icee_open/close
Attached
Detach File
Event Timeline
Log In to Comment