Unbind and rebind the driver to the device after firmware update so that the driver reinitializes
based on the updated values and ensure the device is powered on.
diff --git a/rmi4update/updateutil.cpp b/rmi4update/updateutil.cpp
index 7950e4c..5b27e71 100644
--- a/rmi4update/updateutil.cpp
+++ b/rmi4update/updateutil.cpp
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+#include <sys/types.h>
+
 #include "updateutil.h"
 
 const char *update_error_str[] = {
@@ -68,4 +70,16 @@
 {
 	return (unsigned long)data [0]
 		+ (unsigned long)data [1] * 0x100;
+}
+
+const char * StripPath(char * path, ssize_t size)
+{
+	int i;
+	char * str;
+
+	for (i = size - 1, str = &path[size - 1]; i > 0; --i, --str)
+		if (path[i - 1] == '/')
+			break;
+
+	return str;
 }
\ No newline at end of file