staging: bcm2835-audio: Register bcm2835-audio with vchiq_bus_type
authorUmang Jain <umang.jain@ideasonboard.com>
Sat, 23 Sep 2023 14:32:00 +0000 (20:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 08:04:45 +0000 (10:04 +0200)
commit06d0b811883b867b9a6336585b9122fcde20f078
tree85f6793d174799800be921d36bc2cff478946f7e
parent899038ae82bd65191c6a2f19bf693bf6f24e5b3c
staging: bcm2835-audio: Register bcm2835-audio with vchiq_bus_type

Similar to how bcm2385-camera device is registered, register the
bcm2835-audio with vchiq_bus_type as well.

Since we moved away bcm2835-audio from platform driver/device,
we have to set the DMA mask explicitly. Set the DMA mask at probe
time.

Meanwhile at it, change the name and module alias from "bcm2835_audio"
to "bcm2835-audio" to be consistent with bcm2835-camera device. This
does not brings any functional change as '-' and '_' are
interchangeable as per modprobe man pages.

Also, drop vchiq_register_child() helper which is no longer
needed after this patch.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20230923143200.268063-7-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c