[ddk] Remove the device_unbind() API

This helps clear the way for removing the zx_device "owner" field

Change-Id: I51f8f456d4d172a4ccb75040fef17015bc4b5ffd
diff --git a/system/core/devmgr/devhost-api.c b/system/core/devmgr/devhost-api.c
index d2f92a3..ad32787 100644
--- a/system/core/devmgr/devhost-api.c
+++ b/system/core/devmgr/devhost-api.c
@@ -96,12 +96,6 @@
     return r;
 }
 
-__EXPORT void device_unbind(zx_device_t* dev) {
-    DM_LOCK();
-    devhost_device_unbind(dev);
-    DM_UNLOCK();
-}
-
 __EXPORT zx_status_t device_rebind(zx_device_t* dev) {
     zx_status_t r;
     DM_LOCK();
diff --git a/system/core/devmgr/devhost-core.c b/system/core/devmgr/devhost-core.c
index df86245..e60a640 100644
--- a/system/core/devmgr/devhost-core.c
+++ b/system/core/devmgr/devhost-core.c
@@ -534,16 +534,6 @@
     return r;
 }
 
-zx_status_t devhost_device_unbind(zx_device_t* dev) TA_REQ(&__devhost_api_lock) {
-    if (!dev->owner) {
-        return ZX_ERR_INVALID_ARGS;
-    }
-    dev->owner = NULL;
-    dev_ref_release(dev);
-
-    return ZX_OK;
-}
-
 void devhost_device_destroy(zx_device_t* dev) {
     // Only destroy devices immediately after device_create() or after they're dead.
     ZX_DEBUG_ASSERT(dev->flags == 0 || dev->flags & DEV_FLAG_VERY_DEAD);
diff --git a/system/core/devmgr/devhost.h b/system/core/devmgr/devhost.h
index 772755d..02f8374 100644
--- a/system/core/devmgr/devhost.h
+++ b/system/core/devmgr/devhost.h
@@ -39,8 +39,6 @@
 
 extern zx_protocol_device_t device_default_ops;
 
-zx_status_t devhost_device_unbind(zx_device_t* dev);
-
 zx_status_t devhost_device_add(zx_device_t* dev, zx_device_t* parent,
                                const zx_device_prop_t* props, uint32_t prop_count,
                                const char* proxy_args);
diff --git a/system/ulib/ddk/include/ddk/driver.h b/system/ulib/ddk/include/ddk/driver.h
index e0f8601..14d20cc 100644
--- a/system/ulib/ddk/include/ddk/driver.h
+++ b/system/ulib/ddk/include/ddk/driver.h
@@ -136,8 +136,6 @@
 zx_status_t device_rebind(zx_device_t* device);
 void device_make_visible(zx_device_t* device);
 
-void device_unbind(zx_device_t* dev);
-
 #define ROUNDUP(a, b)   (((a) + ((b)-1)) & ~((b)-1))
 #define ROUNDDOWN(a, b) ((a) & ~((b)-1))
 #define ALIGN(a, b) ROUNDUP(a, b)