static int radio_hci_smd_init(void) { int ret; if (chan_opened) { FMDBG("Channel is already opened"); return 0; } /* this should be called with fm_smd_enable lock held */ ret = radio_hci_smd_register_dev(&hs); if (ret < 0) { FMDERR("Failed to register smd device"); chan_opened = false; return ret; } chan_opened = true; return ret; }
static int radio_hci_smd_init(void) { return radio_hci_smd_register_dev(&hs); }
int hci_fm_smd_register(void) { return radio_hci_smd_register_dev(&hs); }