コード例 #1
0
static int bluetooth_rfkill_remove(struct platform_device *dev)
{
	rfkill_unregister(bt_rfk);
	rfkill_destroy(bt_rfk);
	gpio_free(GPIO_BT_RESET_N);

#ifdef CONFIG_BCM4335BT
	bcm_btlock_exit();
#endif /* CONFIG_BCM4335BT */

	return 0;
}
static int lgps3_rfkill_remove(struct platform_device *dev)
{
	rfkill_unregister(bt_rfk);
	rfkill_destroy(bt_rfk);
	gpio_free(LGPS3_GPIO_BT_RESET_N);

#if defined(CONFIG_BCM4335BT)
//+++BRCM 4335 AXI Patch
    bcm_btlock_exit();
//---BRCM
#endif // defined(CONFIG_BCM4335BT)	
	return 0;
}
static int bluetooth_rfkill_remove(struct platform_device *dev)
{
	rfkill_unregister(bt_rfk);
	rfkill_destroy(bt_rfk);
	gpio_free(GPIO_BT_RESET_N);

#if defined(CONFIG_BCM4335BT)
/* +++BRCM 4335 AXI Patch */
	bcm_btlock_exit();
/* ---BRCM */
#endif // defined(CONFIG_BCM4335BT)	
	return 0;
}