diff options
-rw-r--r-- | drivers/isdn/mISDN/dsp_pipeline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c index bf999bdc41c3..0c773fa9dbd0 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) { |