Why this error
Hi,
I use the following code to get mtd device pointer:
mtd = get_mtd_device(NULL, MTD_MINOR);
The compiler always complains that parse error before ; /* MTD_MINOR is a defined macro. */
But when I call get_mtd_device() in this way, no complain at all.
int mtd_minor = MTD_MINOR;
mtd = get_mtd_device(NULL, mtd_minor);Why does this error happen? Anybody encountered such errors before?
Thanks.
- Shawn.