summaryrefslogtreecommitdiff
path: root/xpp/card_fxo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/card_fxo.c')
-rw-r--r--xpp/card_fxo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/card_fxo.c b/xpp/card_fxo.c
index ec44756..404407f 100644
--- a/xpp/card_fxo.c
+++ b/xpp/card_fxo.c
@@ -592,6 +592,8 @@ static int FXO_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd, unsigned long a
unsigned char echotune_data[ARRAY_SIZE(echotune_regs)];
BUG_ON(!xpd);
+ if(!xpd->xbus->hardware_exists)
+ return -ENODEV;
switch (cmd) {
case WCTDM_SET_ECHOTUNE:
XPD_DBG(GENERAL, xpd, "-- Setting echo registers: \n");