On Thursday 04 September 2014 10:48:00 Ashwin Chaugule wrote:
- Create a virtual device to back the PCCT, so
- that the generic Mailbox framework can do its
- ref counting.
- */
+struct platform_device pcc_pdev = {
.name = "PCCT",
+};
Don't declare platform devices statically in C code, just use platform_create_bundle() here to create the device dynamically and bind it to the driver. That will also simplify the driver initalization.
Nice. Didn't know about this.
It's almost always inappropriate, but I guess here it makes sense. Normally we want drivers to be loadable when the device shows up, but you can't do that here anyway.
Arnd