diff options
| -rw-r--r-- | drivers/isdn/hardware/mISDN/hfcmulti.c | 3 | ||||
| -rw-r--r-- | drivers/isdn/hardware/mISDN/hfcpci.c | 2 | ||||
| -rw-r--r-- | drivers/isdn/mISDN/dsp_cmx.c | 5 | ||||
| -rw-r--r-- | drivers/isdn/mISDN/dsp_pipeline.c | 4 | ||||
| -rw-r--r-- | include/linux/mISDNif.h | 5 |
5 files changed, 12 insertions, 7 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c index 97f4708b3879..595ba8eb4a07 100644 --- a/drivers/isdn/hardware/mISDN/hfcmulti.c +++ b/drivers/isdn/hardware/mISDN/hfcmulti.c | |||
| @@ -3615,7 +3615,7 @@ hfcm_bctrl(struct mISDNchannel *ch, u_int cmd, void *arg) | |||
| 3615 | static void | 3615 | static void |
| 3616 | ph_state_change(struct dchannel *dch) | 3616 | ph_state_change(struct dchannel *dch) |
| 3617 | { | 3617 | { |
| 3618 | struct hfc_multi *hc = dch->hw; | 3618 | struct hfc_multi *hc; |
| 3619 | int ch, i; | 3619 | int ch, i; |
| 3620 | 3620 | ||
| 3621 | if (!dch) { | 3621 | if (!dch) { |
| @@ -3623,6 +3623,7 @@ ph_state_change(struct dchannel *dch) | |||
| 3623 | __func__); | 3623 | __func__); |
| 3624 | return; | 3624 | return; |
| 3625 | } | 3625 | } |
| 3626 | hc = dch->hw; | ||
| 3626 | ch = dch->slot; | 3627 | ch = dch->slot; |
| 3627 | 3628 | ||
| 3628 | if (hc->type == 1) { | 3629 | if (hc->type == 1) { |
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 917bf41a293b..f0e14dfcf71d 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c +++ b/drivers/isdn/hardware/mISDN/hfcpci.c | |||
| @@ -61,7 +61,7 @@ u32 hfc_jiffies; | |||
| 61 | 61 | ||
| 62 | MODULE_AUTHOR("Karsten Keil"); | 62 | MODULE_AUTHOR("Karsten Keil"); |
| 63 | MODULE_LICENSE("GPL"); | 63 | MODULE_LICENSE("GPL"); |
| 64 | module_param(debug, uint, 0); | 64 | module_param(debug, uint, S_IRUGO | S_IWUSR); |
| 65 | module_param(poll, uint, S_IRUGO | S_IWUSR); | 65 | module_param(poll, uint, S_IRUGO | S_IWUSR); |
| 66 | 66 | ||
| 67 | enum { | 67 | enum { |
diff --git a/drivers/isdn/mISDN/dsp_cmx.c b/drivers/isdn/mISDN/dsp_cmx.c index 0ac67bff303a..58c43e429f73 100644 --- a/drivers/isdn/mISDN/dsp_cmx.c +++ b/drivers/isdn/mISDN/dsp_cmx.c | |||
| @@ -1579,7 +1579,7 @@ send_packet: | |||
| 1579 | schedule_work(&dsp->workq); | 1579 | schedule_work(&dsp->workq); |
| 1580 | } | 1580 | } |
| 1581 | 1581 | ||
| 1582 | static u32 jittercount; /* counter for jitter check */; | 1582 | static u32 jittercount; /* counter for jitter check */ |
| 1583 | struct timer_list dsp_spl_tl; | 1583 | struct timer_list dsp_spl_tl; |
| 1584 | u32 dsp_spl_jiffies; /* calculate the next time to fire */ | 1584 | u32 dsp_spl_jiffies; /* calculate the next time to fire */ |
| 1585 | static u16 dsp_count; /* last sample count */ | 1585 | static u16 dsp_count; /* last sample count */ |
| @@ -1893,7 +1893,7 @@ dsp_cmx_hdlc(struct dsp *dsp, struct sk_buff *skb) | |||
| 1893 | /* in case of hardware (echo) */ | 1893 | /* in case of hardware (echo) */ |
| 1894 | if (dsp->pcm_slot_tx >= 0) | 1894 | if (dsp->pcm_slot_tx >= 0) |
| 1895 | return; | 1895 | return; |
| 1896 | if (dsp->echo) | 1896 | if (dsp->echo) { |
| 1897 | nskb = skb_clone(skb, GFP_ATOMIC); | 1897 | nskb = skb_clone(skb, GFP_ATOMIC); |
| 1898 | if (nskb) { | 1898 | if (nskb) { |
| 1899 | hh = mISDN_HEAD_P(nskb); | 1899 | hh = mISDN_HEAD_P(nskb); |
| @@ -1902,6 +1902,7 @@ dsp_cmx_hdlc(struct dsp *dsp, struct sk_buff *skb) | |||
| 1902 | skb_queue_tail(&dsp->sendq, nskb); | 1902 | skb_queue_tail(&dsp->sendq, nskb); |
| 1903 | schedule_work(&dsp->workq); | 1903 | schedule_work(&dsp->workq); |
| 1904 | } | 1904 | } |
| 1905 | } | ||
| 1905 | return; | 1906 | return; |
| 1906 | } | 1907 | } |
| 1907 | /* in case of hardware conference */ | 1908 | /* in case of hardware conference */ |
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c index bf999bdc41c3..18cf87c113e7 100644 --- a/drivers/isdn/mISDN/dsp_pipeline.c +++ b/drivers/isdn/mISDN/dsp_pipeline.c | |||
| @@ -110,8 +110,7 @@ int mISDN_dsp_element_register(struct mISDN_dsp_element *elem) | |||
| 110 | } | 110 | } |
| 111 | list_add_tail(&entry->list, &dsp_elements); | 111 | list_add_tail(&entry->list, &dsp_elements); |
| 112 | 112 | ||
| 113 | for (i = 0; i < (sizeof(element_attributes) | 113 | for (i = 0; i < ARRAY_SIZE(element_attributes); ++i) { |
| 114 | / sizeof(struct device_attribute)); ++i) | ||
| 115 | ret = device_create_file(&entry->dev, | 114 | ret = device_create_file(&entry->dev, |
| 116 | &element_attributes[i]); | 115 | &element_attributes[i]); |
| 117 | if (ret) { | 116 | if (ret) { |
| @@ -119,6 +118,7 @@ int mISDN_dsp_element_register(struct mISDN_dsp_element *elem) | |||
| 119 | __func__); | 118 | __func__); |
| 120 | goto err2; | 119 | goto err2; |
| 121 | } | 120 | } |
| 121 | } | ||
| 122 | 122 | ||
| 123 | #ifdef PIPELINE_DEBUG | 123 | #ifdef PIPELINE_DEBUG |
| 124 | printk(KERN_DEBUG "%s: %s registered\n", __func__, elem->name); | 124 | printk(KERN_DEBUG "%s: %s registered\n", __func__, elem->name); |
diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index 557477ac3d5b..5da3d95b27f1 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h | |||
| @@ -559,7 +559,10 @@ extern void mISDN_unregister_clock(struct mISDNclock *); | |||
| 559 | 559 | ||
| 560 | static inline struct mISDNdevice *dev_to_mISDN(struct device *dev) | 560 | static inline struct mISDNdevice *dev_to_mISDN(struct device *dev) |
| 561 | { | 561 | { |
| 562 | return dev_get_drvdata(dev); | 562 | if (dev) |
| 563 | return dev_get_drvdata(dev); | ||
| 564 | else | ||
| 565 | return NULL; | ||
| 563 | } | 566 | } |
| 564 | 567 | ||
| 565 | extern void set_channel_address(struct mISDNchannel *, u_int, u_int); | 568 | extern void set_channel_address(struct mISDNchannel *, u_int, u_int); |
