2.0 alpha
[platform/core/system/devman.git] / src / device_engine.c
old mode 100755 (executable)
new mode 100644 (file)
similarity index 95%
rename from device_engine.c
rename to src/device_engine.c
index 3b709e7..acd4d41
@@ -4,7 +4,7 @@
  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact: DongGi Jang <dg0402.jang@samsung.com>
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -17,7 +17,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
-*/ 
+*/
 
 
 #include <sys/types.h>
@@ -77,7 +77,6 @@ struct device *find_device(struct device *root_dev, devtype_t devtype)
                dev = root_dev;
 
        while (dev) {
-               DBG("devname = %s %d %d", dev->devname, dev->devtype, devtype);
                if (dev->devtype == devtype)
                        return dev;
                dev = dev->next;
@@ -95,7 +94,7 @@ int set_devtype(char *devname, devtype_t devtype)
        while (dev) {
                if (strstr(dev->devname, devname)) {
                        if ((strstr(dev->devname, "auto") != NULL) &&
-                                       (dev->probe != NULL)) {
+                           (dev->probe != NULL)) {
                                ret = dev->probe();
                                if (ret < 0) {
                                        DBG("auto probe failed");