Ben-san,
quoted
+/* temp */
+static int hvc_beat_init(void)
+{
+ struct hvc_struct *hp;
+
+ hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16);
+ if (IS_ERR(hp))
+ return PTR_ERR(hp);
+ hvc_beat_dev = hp;
+ return 0;
+}
Please test your are running on beat before initializing your stuff as
your driver might be built as part of a kernel that can boot other
machines.
I see. I'll fix it by using "firmware_has_feature()" macro.
Best regards,
Kou Ishizaki