Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / usb / gadget / function / f_accessory.c
index 4d27af468a0799255ea55671cb227f4fe2f49865..49dbef82a8622aed75d4d5301815dad2c44375d1 100644 (file)
@@ -211,6 +211,7 @@ static inline struct acc_dev *func_to_dev(struct usb_function *f)
 static struct usb_request *acc_request_new(struct usb_ep *ep, int buffer_size)
 {
        struct usb_request *req = usb_ep_alloc_request(ep, GFP_KERNEL);
+
        if (!req)
                return NULL;
 
@@ -1024,6 +1025,7 @@ acc_function_unbind(struct usb_configuration *c, struct usb_function *f)
 static void acc_start_work(struct work_struct *data)
 {
        char *envp[2] = { "ACCESSORY=START", NULL };
+
        kobject_uevent_env(&acc_device.this_device->kobj, KOBJ_CHANGE, envp);
 }