forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/s390/char/vmlogrdr.c
....@@ -153,7 +153,7 @@
153153 }
154154 };
155155
156
-#define MAXMINOR (sizeof(sys_ser)/sizeof(struct vmlogrdr_priv_t))
156
+#define MAXMINOR ARRAY_SIZE(sys_ser)
157157
158158 static char FENCE[] = {"EOR"};
159159 static int vmlogrdr_major = 0;