fsi: sbefifo: Convert to use the new chardev
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jul 2018 04:39:55 +0000 (14:39 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 26 Jul 2018 23:57:31 +0000 (09:57 +1000)
commit8b052dd64f998c7c8e0a0fd1d9feabc0e9bcfe42
tree74ebc5c8059f6944e6adbe670fdda3ab0a1f9c21
parent0ab5fe5374743d5a279b1ff6297ef2c54d06cd5f
fsi: sbefifo: Convert to use the new chardev

This converts FSI sbefifo to use the new fsi-core controlled
chardev allocator and use a real cdev instead of a miscdev.

One side effect is to fix the object lifetime by removing
the use of devm_kzalloc() for something that contains kobjects,
and using proper reference counting.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/fsi/fsi-sbefifo.c