mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
media: mc: Add nop implementations of media_device_{init,cleanup}
To support compilation with Media controller disabled, drivers were required to conditionally call media_device_init and media_device_cleanup. Add nop implementations of both so drivers don't need to care (or at least care less). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
a069f79bfa
commit
7cb8a62535
1 changed files with 6 additions and 0 deletions
|
@ -429,6 +429,9 @@ void __media_device_usb_init(struct media_device *mdev,
|
|||
const char *driver_name);
|
||||
|
||||
#else
|
||||
static inline void media_device_init(struct media_device *mdev)
|
||||
{
|
||||
}
|
||||
static inline int media_device_register(struct media_device *mdev)
|
||||
{
|
||||
return 0;
|
||||
|
@ -436,6 +439,9 @@ static inline int media_device_register(struct media_device *mdev)
|
|||
static inline void media_device_unregister(struct media_device *mdev)
|
||||
{
|
||||
}
|
||||
static inline void media_device_cleanup(struct media_device *mdev)
|
||||
{
|
||||
}
|
||||
static inline int media_device_register_entity(struct media_device *mdev,
|
||||
struct media_entity *entity)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue