Browse Source

Staging: emuxx_udc: replace pr_* with dev_*

dev_* is prefered over pr_* when appropriate dev structure is present.
This patch replace pr_info and pr_warn with its dev_ counterpart.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Haneen Mohammed 10 years ago
parent
commit
93275c8068
1 changed files with 7 additions and 7 deletions
  1. 7 7
      drivers/staging/emxx_udc/emxx_udc.c

+ 7 - 7
drivers/staging/emxx_udc/emxx_udc.c

@@ -1426,7 +1426,7 @@ static void _nbu2ss_set_test_mode(struct nbu2ss_udc *udc, u32 mode)
 	if (mode > MAX_TEST_MODE_NUM)
 	if (mode > MAX_TEST_MODE_NUM)
 		return;
 		return;
 
 
-	pr_info("SET FEATURE : test mode = %d\n", mode);
+	dev_info(udc->dev, "SET FEATURE : test mode = %d\n", mode);
 
 
 	data = _nbu2ss_readl(&udc->p_regs->USB_CONTROL);
 	data = _nbu2ss_readl(&udc->p_regs->USB_CONTROL);
 	data &= ~TEST_FORCE_ENABLE;
 	data &= ~TEST_FORCE_ENABLE;
@@ -1885,8 +1885,8 @@ static inline void _nbu2ss_ep0_int(struct nbu2ss_udc *udc)
 			| STG_END_INT | EP0_OUT_NULL_INT);
 			| STG_END_INT | EP0_OUT_NULL_INT);
 
 
 	if (status == 0) {
 	if (status == 0) {
-		pr_info("--- %s Not Decode Interrupt\n", __func__);
-		pr_info("--- EP0_STATUS = 0x%08x\n", intr);
+		dev_info(udc->dev, "%s Not Decode Interrupt\n", __func__);
+		dev_info(udc->dev, "EP0_STATUS = 0x%08x\n", intr);
 		return;
 		return;
 	}
 	}
 
 
@@ -2406,7 +2406,7 @@ static inline void _nbu2ss_check_vbus(struct nbu2ss_udc *udc)
 		udc->linux_suspended = 0;
 		udc->linux_suspended = 0;
 
 
 		_nbu2ss_reset_controller(udc);
 		_nbu2ss_reset_controller(udc);
-		pr_info(" ----- VBUS OFF\n");
+		dev_info(udc->dev, " ----- VBUS OFF\n");
 
 
 		if (udc->vbus_active == 1) {
 		if (udc->vbus_active == 1) {
 			/* VBUS OFF */
 			/* VBUS OFF */
@@ -2432,7 +2432,7 @@ static inline void _nbu2ss_check_vbus(struct nbu2ss_udc *udc)
 		if (reg_dt == 0)
 		if (reg_dt == 0)
 			return;
 			return;
 
 
-		pr_info(" ----- VBUS ON\n");
+		dev_info(udc->dev, " ----- VBUS ON\n");
 
 
 		if (udc->linux_suspended)
 		if (udc->linux_suspended)
 			return;
 			return;
@@ -2767,7 +2767,7 @@ static int nbu2ss_ep_queue(
 /*	INFO("=== %s(ep%d), zero=%d\n", __func__, ep->epnum, _req->zero); */
 /*	INFO("=== %s(ep%d), zero=%d\n", __func__, ep->epnum, _req->zero); */
 
 
 	if (udc->vbus_active == 0) {
 	if (udc->vbus_active == 0) {
-		pr_info("Can't ep_queue (VBUS OFF)\n");
+		dev_info(udc->dev, "Can't ep_queue (VBUS OFF)\n");
 		return -ESHUTDOWN;
 		return -ESHUTDOWN;
 	}
 	}
 
 
@@ -3091,7 +3091,7 @@ static int nbu2ss_gad_wakeup(struct usb_gadget *pgadget)
 
 
 	data = gpio_get_value(VBUS_VALUE);
 	data = gpio_get_value(VBUS_VALUE);
 	if (data == 0) {
 	if (data == 0) {
-		pr_warn("VBUS LEVEL = %d\n", data);
+		dev_warn(&pgadget->dev, "VBUS LEVEL = %d\n", data);
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}