diff options
Diffstat (limited to 'io-module/spi.c')
-rw-r--r-- | io-module/spi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io-module/spi.c b/io-module/spi.c index 2da3f05..dfbdfe2 100644 --- a/io-module/spi.c +++ b/io-module/spi.c @@ -599,8 +599,8 @@ static int mts_spi_dc_dout_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card digital outputs not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card digital outputs not available"); return -ENODEV; } @@ -645,8 +645,8 @@ static int mts_spi_dc_din_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card digital inputs not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card digital inputs not available"); return -ENODEV; } @@ -688,8 +688,8 @@ static int mts_spi_dc_adc_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card analog to digital not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card analog to digital not available"); return -ENODEV; } |