staging: vchiq: Refactor vchiq cdev code
authorOjaswin Mujoo <ojaswin98@gmail.com>
Wed, 21 Jul 2021 16:20:49 +0000 (21:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:23:25 +0000 (15:23 +0200)
commit2a4d15a4ae98e27ed59a70c1c25483d24507171b
tree678678f28d4d8e0dbb50039904013c9754e9c044
parent050cbd980e6bc882b8c2a6e954ada48cbd5ce5c2
staging: vchiq: Refactor vchiq cdev code

Move the vchiq cdev initialization code to its own function for better
code organization. Call the initialization function during probe, thus
shifting the whole cdev creation logic (which was earlier split in
vchiq_probe() and vchiq_driver_init()) to vchiq_probe().

Reviewed-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Ojaswin Mujoo <ojaswin98@gmail.com>
Link: https://lore.kernel.org/r/c0e538eb0644292a52267d39edd85ab2af9f9a4e.1626882325.git.ojaswin98@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c