> We could do that but then we can't reset the struct device dma_parms > member to NULL. I think it is fine to skip this. From the device_add docs: * Do not call this routine or device_register() more than once for * any device structure. The driver model core is not designed to work * with devices that get unregistered and then spring back to life. * (Among other things, it's very hard to guarantee that all references * to the previous incarnation of @dev have been dropped.) Allocate * and register a fresh new struct device instead. I also don't see any other dma_params user doing this (which is only an indication, not a proof).
Attachment:
signature.asc
Description: PGP signature