aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/capi/capi.c4
-rw-r--r--drivers/isdn/capi/capidrv.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index d22c0224fde6..38045910ca94 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -1456,7 +1456,7 @@ static struct procfsentries {
1456 1456
1457static void __init proc_init(void) 1457static void __init proc_init(void)
1458{ 1458{
1459 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 1459 int nelem = ARRAY_SIZE(procfsentries);
1460 int i; 1460 int i;
1461 1461
1462 for (i=0; i < nelem; i++) { 1462 for (i=0; i < nelem; i++) {
@@ -1468,7 +1468,7 @@ static void __init proc_init(void)
1468 1468
1469static void __exit proc_exit(void) 1469static void __exit proc_exit(void)
1470{ 1470{
1471 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 1471 int nelem = ARRAY_SIZE(procfsentries);
1472 int i; 1472 int i;
1473 1473
1474 for (i=nelem-1; i >= 0; i--) { 1474 for (i=nelem-1; i >= 0; i--) {
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index c4d438c17dab..8cec9c3898ec 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -2218,7 +2218,7 @@ static struct procfsentries {
2218 2218
2219static void __init proc_init(void) 2219static void __init proc_init(void)
2220{ 2220{
2221 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 2221 int nelem = ARRAY_SIZE(procfsentries);
2222 int i; 2222 int i;
2223 2223
2224 for (i=0; i < nelem; i++) { 2224 for (i=0; i < nelem; i++) {
@@ -2230,7 +2230,7 @@ static void __init proc_init(void)
2230 2230
2231static void __exit proc_exit(void) 2231static void __exit proc_exit(void)
2232{ 2232{
2233 int nelem = sizeof(procfsentries)/sizeof(procfsentries[0]); 2233 int nelem = ARRAY_SIZE(procfsentries);
2234 int i; 2234 int i;
2235 2235
2236 for (i=nelem-1; i >= 0; i--) { 2236 for (i=nelem-1; i >= 0; i--) {