Release the Dbg board detection gpio once its purpose is served
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
 static inline int omap_zoom2_debugboard_detect(void)
 {
        int debug_board_detect = 0;
+       int ret = 1;
 
        debug_board_detect = ZOOM2_SMSC911X_GPIO;
 
        gpio_direction_input(debug_board_detect);
 
        if (!gpio_get_value(debug_board_detect)) {
-               gpio_free(debug_board_detect);
-               return 0;
+               ret = 0;
        }
-       return 1;
+       gpio_free(debug_board_detect);
+       return ret;
 }
 
 static struct platform_device *zoom2_devices[] __initdata = {