The our_hsotg global pointer to hsotg USB device state is removed.
It has been replaced with to_hsotg(gadget) function.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
        }
 }
 
-static struct s3c_hsotg *our_hsotg;
-
 /* IRQ flags which will trigger a retry around the IRQ loop */
 #define IRQ_RETRY_MASK (S3C_GINTSTS_NPTxFEmp | \
                        S3C_GINTSTS_PTxFEmp |  \
 static int s3c_hsotg_udc_start(struct usb_gadget *gadget,
                           struct usb_gadget_driver *driver)
 {
-       struct s3c_hsotg *hsotg = our_hsotg;
+       struct s3c_hsotg *hsotg = to_hsotg(gadget);
        int ret;
 
        if (!hsotg) {
 static int s3c_hsotg_udc_stop(struct usb_gadget *gadget,
                          struct usb_gadget_driver *driver)
 {
-       struct s3c_hsotg *hsotg = our_hsotg;
+       struct s3c_hsotg *hsotg = to_hsotg(gadget);
        int ep;
 
        if (!hsotg)
 
        s3c_hsotg_dump(hsotg);
 
-       our_hsotg = hsotg;
        return 0;
 
  err_ep_mem: