Re: [PATCH 0/6] i2c: Make remove callback return void

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

 



Hello,

Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> writes:

> Now there is a forth driver in next that needs adaption:
> drivers/media/i2c/ar0521.c adding 

Very well. It's even already
Acked-by: Krzysztof Hałasa <khalasa@xxxxxxx>

> --- a/drivers/media/i2c/ar0521.c
> +++ b/drivers/media/i2c/ar0521.c
> @@ -1018,7 +1018,7 @@ static int ar0521_probe(struct i2c_client *client)
>  	return ret;
>  }
>  
> -static int ar0521_remove(struct i2c_client *client)
> +static void ar0521_remove(struct i2c_client *client)
>  {
>  	struct v4l2_subdev *sd = i2c_get_clientdata(client);
>  	struct ar0521_dev *sensor = to_ar0521_dev(sd);
> @@ -1031,7 +1031,6 @@ static int ar0521_remove(struct i2c_client *client)
>  		ar0521_power_off(&client->dev);
>  	pm_runtime_set_suspended(&client->dev);
>  	mutex_destroy(&sensor->lock);
> -	return 0;
>  }
>  

-- 
Krzysztof "Chris" Hałasa

Sieć Badawcza Łukasiewicz
Przemysłowy Instytut Automatyki i Pomiarów PIAP
Al. Jerozolimskie 202, 02-486 Warszawa




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux