mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_EXT_CLK
remove conditional code blocks checked by unused CONFIG_EXT_CLK cleaning required in TODO file: find and remove code blocks guarded by never set CONFIG_FOO defines Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/e50627bb53a8c2d3fcb03a95d8d490e98beff03a.1615801722.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c967237f4
commit
9d444d070b
|
|
@ -53,20 +53,6 @@ u8 _InitPowerOn_8723BS(struct adapter *padapter)
|
|||
|
||||
|
||||
/* all of these MUST be configured before power on */
|
||||
#ifdef CONFIG_EXT_CLK
|
||||
/* Use external crystal(XTAL) */
|
||||
value8 = rtw_read8(padapter, REG_PAD_CTRL1_8723B + 2);
|
||||
value8 |= BIT(7);
|
||||
rtw_write8(padapter, REG_PAD_CTRL1_8723B + 2, value8);
|
||||
|
||||
/* CLK_REQ High active or Low Active */
|
||||
/* Request GPIO polarity: */
|
||||
/* 0: low active */
|
||||
/* 1: high active */
|
||||
value8 = rtw_read8(padapter, REG_MULTI_FUNC_CTRL + 1);
|
||||
value8 |= BIT(5);
|
||||
rtw_write8(padapter, REG_MULTI_FUNC_CTRL + 1, value8);
|
||||
#endif /* CONFIG_EXT_CLK */
|
||||
|
||||
/* only cmd52 can be used before power on(card enable) */
|
||||
ret = CardEnable(padapter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user