USB: Add EXPORT_SYMBOL for usb_alloc_dev
authorPratyush Anand <pratyush.anand@st.com>
Mon, 14 Jul 2014 13:57:48 +0000 (19:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 00:11:09 +0000 (17:11 -0700)
usb_alloc_dev is used by lvstest driver now which can be built as
module. Therefore export usb_alloc_dev symbol.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb.c

index 4d1144990d4c848362c2f86cf8aa1039c3d70923..2dd2362198d2b5d55b631116dae23b757ced9ffa 100644 (file)
@@ -501,6 +501,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
        }
        return dev;
 }
+EXPORT_SYMBOL_GPL(usb_alloc_dev);
 
 /**
  * usb_get_dev - increments the reference count of the usb device structure