usb: bc: fix compile error
authorlyz <lyz@rock-chips.com>
Wed, 24 Jun 2015 03:15:33 +0000 (11:15 +0800)
committerlyz <lyz@rock-chips.com>
Wed, 24 Jun 2015 03:15:37 +0000 (11:15 +0800)
Fix conflicting types for 'rk_bc_detect_notifier_register'

drivers/usb/dwc_otg_310/usbdev_bc.c

index 612672fba515cafc25f8649527a3466d973c720d..79a08a0a44f92d4bbb0a14a8d67742d638de5349 100755 (executable)
@@ -426,7 +426,7 @@ EXPORT_SYMBOL(dwc_otg_check_dpdm);
 static ATOMIC_NOTIFIER_HEAD(rk_bc_notifier);
 
 int rk_bc_detect_notifier_register(struct notifier_block *nb,
-                                          int *type)
+                                  enum bc_port_type *type)
 {
        *type = (int)usb_battery_charger_detect(0);
        return atomic_notifier_chain_register(&rk_bc_notifier, nb);