device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE
Now that we generate a header that extern's all possible devicetree based device struct we can remove DEVICE_DT_DECLARE and DEVICE_DT_INST_DECLARE as they aren't needed anymore. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
98b6e4f834
commit
02703e60d9
55 changed files with 2 additions and 160 deletions
|
@ -808,9 +808,6 @@ static const struct i2s_driver_api i2s_cavs_driver_api = {
|
|||
};
|
||||
|
||||
#define I2S_CAVS_DEVICE_INIT(n) \
|
||||
DEVICE_DT_INST_DECLARE(n); \
|
||||
static void i2s_cavs_irq_connect_##n(void); \
|
||||
\
|
||||
static const struct i2s_cavs_config i2s_cavs_config_##n = { \
|
||||
.regs = (struct i2s_cavs_ssp *) \
|
||||
DT_INST_REG_ADDR_BY_IDX(n, 0), \
|
||||
|
|
|
@ -898,8 +898,6 @@ static const struct device *get_dev_from_tx_dma_channel(uint32_t dma_channel)
|
|||
}
|
||||
|
||||
#define I2S_INIT(index, clk_sel) \
|
||||
DEVICE_DT_DECLARE(DT_NODELABEL(i2s##index)); \
|
||||
\
|
||||
static const struct soc_gpio_pinctrl i2s_pins_##index[] = \
|
||||
ST_STM32_DT_INST_PINCTRL(index, 0);\
|
||||
\
|
||||
|
|
|
@ -962,8 +962,6 @@ static const struct i2s_driver_api i2s_sam_driver_api = {
|
|||
|
||||
/* I2S0 */
|
||||
|
||||
DEVICE_DT_INST_DECLARE(0);
|
||||
|
||||
static const struct device *get_dev_from_dma_channel(uint32_t dma_channel)
|
||||
{
|
||||
return &DEVICE_DT_NAME_GET(DT_DRV_INST(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue