Re: [PATCH 1/1] ov08x40: remove() now returns void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sakari,

Quoting Sakari Ailus (2022-11-21 17:34:53)
> The return type of the driver's remove() callback is now void. This driver
> got merged while the return type got changed tree-wide. Fix this.
> 
> Fixes: 38fc5136ac16 ("media: i2c: Add ov08x40 image sensor driver")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

Kieran: Mon, 21 Nov 2022 17:34:47 +0000
Sakari: Mon, 21 Nov 2022 19:34:53 +0200

Aha, so I got my v1 out 6 seconds before you ;-) Quite the tense race
...

But I'll not worry - yours is probably already in your tree, so:

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>

> ---
>  drivers/media/i2c/ov08x40.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
> index b4ade17a83f5e..72ae7fba94eb0 100644
> --- a/drivers/media/i2c/ov08x40.c
> +++ b/drivers/media/i2c/ov08x40.c
> @@ -3281,7 +3281,7 @@ static int ov08x40_probe(struct i2c_client *client)
>         return ret;
>  }
>  
> -static int ov08x40_remove(struct i2c_client *client)
> +static void ov08x40_remove(struct i2c_client *client)
>  {
>         struct v4l2_subdev *sd = i2c_get_clientdata(client);
>         struct ov08x40 *ov08x = to_ov08x40(sd);
> @@ -3292,8 +3292,6 @@ static int ov08x40_remove(struct i2c_client *client)
>  
>         pm_runtime_disable(&client->dev);
>         pm_runtime_set_suspended(&client->dev);
> -
> -       return 0;
>  }
>  
>  static const struct dev_pm_ops ov08x40_pm_ops = {
> -- 
> 2.30.2
>




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux