Skip to content

Commit 2246902

Browse files
peda-rmchehab
authored andcommitted
media: cx231xx: drop return value of cx231xx_i2c_unregister
No one cares anyway. Signed-off-by: Peter Rosin <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 54b1b41 commit 2246902

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/media/usb/cx231xx/cx231xx-i2c.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,9 @@ int cx231xx_i2c_register(struct cx231xx_i2c *bus)
551551
* cx231xx_i2c_unregister()
552552
* unregister i2c_bus
553553
*/
554-
int cx231xx_i2c_unregister(struct cx231xx_i2c *bus)
554+
void cx231xx_i2c_unregister(struct cx231xx_i2c *bus)
555555
{
556556
i2c_del_adapter(&bus->i2c_adap);
557-
return 0;
558557
}
559558

560559
/*

drivers/media/usb/cx231xx/cx231xx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ int cx231xx_reset_analog_tuner(struct cx231xx *dev);
762762
/* Provided by cx231xx-i2c.c */
763763
void cx231xx_do_i2c_scan(struct cx231xx *dev, int i2c_port);
764764
int cx231xx_i2c_register(struct cx231xx_i2c *bus);
765-
int cx231xx_i2c_unregister(struct cx231xx_i2c *bus);
765+
void cx231xx_i2c_unregister(struct cx231xx_i2c *bus);
766766
int cx231xx_i2c_mux_create(struct cx231xx *dev);
767767
int cx231xx_i2c_mux_register(struct cx231xx *dev, int mux_no);
768768
void cx231xx_i2c_mux_unregister(struct cx231xx *dev);

0 commit comments

Comments
 (0)