* Fixed publish_devices(): the last entry is supposed to be NULL, not
"". * Added uninit_hardware() hook. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24140 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,6 +37,14 @@ init_hardware(void)
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
uninit_hardware(void)
|
||||
{
|
||||
dprintf("test: uninit_hardware\n");
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
init_driver(void)
|
||||
{
|
||||
@@ -116,7 +124,7 @@ driver_control(void *cookie, uint32 op, void *arg, size_t len)
|
||||
const char**
|
||||
publish_devices(void)
|
||||
{
|
||||
static const char *names[] = {"misc/test/1", "" };
|
||||
static const char *names[] = {"misc/test/1", NULL};
|
||||
dprintf("test: publish_devices\n");
|
||||
return names;
|
||||
}
|
||||
@@ -136,3 +144,4 @@ find_device(const char* name)
|
||||
dprintf("test: find_device\n");
|
||||
return &hooks;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user