#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
-#include <asm/uaccess.h> /* FIXME remove procfs writes */
-#include <asm/arch/hardware.h>
+#include <linux/uaccess.h> /* FIXME remove procfs writes */
+#include <mach/hardware.h>
#include "musb_core.h"
max -= code;
break;
}
- list_for_each_entry (req, &ep->req_list, list) {
+ list_for_each_entry(req, &ep->req_list, list) {
code = snprintf(buf, max, "\treq %p, %s%s%d/%d\n",
req,
req->zero ? "zero, " : "",
buf += code;
max -= code;
}
- } while(0);
+ } while (0);
return buf - buffer;
}
#endif
/* Dump the current status and compile options.
* @param musb the device driver instance
- * @param buffer where to dump the status; it must be big enough hold the
+ * @param buffer where to dump the status; it must be big enough to hold the
* result otherwise "BAD THINGS HAPPENS(TM)".
*/
static int dump_header_stats(struct musb *musb, char *buffer)
reg |= MUSB_DEVCTL_HR;
musb_writeb(mbase, MUSB_DEVCTL, reg);
/* MUSB_HST_MODE( ((struct musb*)data) ); */
- /* WARN("Host Mode\n"); */
+ /* WARNING("Host Mode\n"); */
}
break;
}
break;
-#if (MUSB_DEBUG>0)
+#if (MUSB_DEBUG > 0)
/* set/read debug level */
case 'D':{
if (count > 1) {