diff options
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.c')
| -rw-r--r-- | drivers/media/rc/nuvoton-cir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index d244e1a83f43..7f4fd859bba5 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c | |||
| @@ -1044,7 +1044,7 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) | |||
| 1044 | /* Set up the rc device */ | 1044 | /* Set up the rc device */ |
| 1045 | rdev->priv = nvt; | 1045 | rdev->priv = nvt; |
| 1046 | rdev->driver_type = RC_DRIVER_IR_RAW; | 1046 | rdev->driver_type = RC_DRIVER_IR_RAW; |
| 1047 | rc_set_allowed_protocols(rdev, RC_BIT_ALL); | 1047 | rdev->allowed_protocols = RC_BIT_ALL; |
| 1048 | rdev->open = nvt_open; | 1048 | rdev->open = nvt_open; |
| 1049 | rdev->close = nvt_close; | 1049 | rdev->close = nvt_close; |
| 1050 | rdev->tx_ir = nvt_tx_ir; | 1050 | rdev->tx_ir = nvt_tx_ir; |
| @@ -1221,12 +1221,12 @@ static struct pnp_driver nvt_driver = { | |||
| 1221 | .shutdown = nvt_shutdown, | 1221 | .shutdown = nvt_shutdown, |
| 1222 | }; | 1222 | }; |
| 1223 | 1223 | ||
| 1224 | static int nvt_init(void) | 1224 | static int __init nvt_init(void) |
| 1225 | { | 1225 | { |
| 1226 | return pnp_register_driver(&nvt_driver); | 1226 | return pnp_register_driver(&nvt_driver); |
| 1227 | } | 1227 | } |
| 1228 | 1228 | ||
| 1229 | static void nvt_exit(void) | 1229 | static void __exit nvt_exit(void) |
| 1230 | { | 1230 | { |
| 1231 | pnp_unregister_driver(&nvt_driver); | 1231 | pnp_unregister_driver(&nvt_driver); |
| 1232 | } | 1232 | } |
