aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 13:56:53 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:52 -0500
commitd100e659b61a735c3343b3d82c1c009b04072cdd (patch)
treed80eedc6a9a51787b4fd2307977b9886a316f122 /drivers/media/rc/keymaps
parent2f4f58d689dd71dea67407b74405a3c43e797cb1 (diff)
[media] rc: use rc_map_ prefix for all rc map tables
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps')
-rw-r--r--drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c6
-rw-r--r--drivers/media/rc/keymaps/rc-alink-dtu-m.c6
-rw-r--r--drivers/media/rc/keymaps/rc-anysee.c6
-rw-r--r--drivers/media/rc/keymaps/rc-apac-viewcomp.c6
-rw-r--r--drivers/media/rc/keymaps/rc-asus-pc39.c6
-rw-r--r--drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-a16d.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-cardbus.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-dvbt.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-m135a.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia-rm-ks.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avermedia.c6
-rw-r--r--drivers/media/rc/keymaps/rc-avertv-303.c6
-rw-r--r--drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c6
-rw-r--r--drivers/media/rc/keymaps/rc-behold-columbus.c6
-rw-r--r--drivers/media/rc/keymaps/rc-behold.c6
-rw-r--r--drivers/media/rc/keymaps/rc-budget-ci-old.c6
-rw-r--r--drivers/media/rc/keymaps/rc-cinergy-1400.c6
-rw-r--r--drivers/media/rc/keymaps/rc-cinergy.c6
-rw-r--r--drivers/media/rc/keymaps/rc-dib0700-nec.c6
-rw-r--r--drivers/media/rc/keymaps/rc-dib0700-rc5.c6
-rw-r--r--drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c6
-rw-r--r--drivers/media/rc/keymaps/rc-digittrade.c6
-rw-r--r--drivers/media/rc/keymaps/rc-dm1105-nec.c6
-rw-r--r--drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c6
-rw-r--r--drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c6
-rw-r--r--drivers/media/rc/keymaps/rc-em-terratec.c6
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv-fm53.c6
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv.c6
-rw-r--r--drivers/media/rc/keymaps/rc-encore-enltv2.c6
-rw-r--r--drivers/media/rc/keymaps/rc-evga-indtube.c6
-rw-r--r--drivers/media/rc/keymaps/rc-eztv.c6
-rw-r--r--drivers/media/rc/keymaps/rc-flydvb.c6
-rw-r--r--drivers/media/rc/keymaps/rc-flyvideo.c6
-rw-r--r--drivers/media/rc/keymaps/rc-fusionhdtv-mce.c6
-rw-r--r--drivers/media/rc/keymaps/rc-gadmei-rm008z.c6
-rw-r--r--drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c6
-rw-r--r--drivers/media/rc/keymaps/rc-gotview7135.c6
-rw-r--r--drivers/media/rc/keymaps/rc-hauppauge-new.c6
-rw-r--r--drivers/media/rc/keymaps/rc-imon-mce.c6
-rw-r--r--drivers/media/rc/keymaps/rc-imon-pad.c6
-rw-r--r--drivers/media/rc/keymaps/rc-iodata-bctv7e.c6
-rw-r--r--drivers/media/rc/keymaps/rc-kaiomy.c6
-rw-r--r--drivers/media/rc/keymaps/rc-kworld-315u.c6
-rw-r--r--drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c6
-rw-r--r--drivers/media/rc/keymaps/rc-leadtek-y04g0051.c6
-rw-r--r--drivers/media/rc/keymaps/rc-lirc.c6
-rw-r--r--drivers/media/rc/keymaps/rc-lme2510.c6
-rw-r--r--drivers/media/rc/keymaps/rc-manli.c6
-rw-r--r--drivers/media/rc/keymaps/rc-msi-digivox-ii.c6
-rw-r--r--drivers/media/rc/keymaps/rc-msi-digivox-iii.c6
-rw-r--r--drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c6
-rw-r--r--drivers/media/rc/keymaps/rc-msi-tvanywhere.c6
-rw-r--r--drivers/media/rc/keymaps/rc-nebula.c6
-rw-r--r--drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c6
-rw-r--r--drivers/media/rc/keymaps/rc-norwood.c6
-rw-r--r--drivers/media/rc/keymaps/rc-npgtech.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pctv-sedna.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-color.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-grey.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview-mk12.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview-new.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview.c6
-rw-r--r--drivers/media/rc/keymaps/rc-powercolor-real-angel.c6
-rw-r--r--drivers/media/rc/keymaps/rc-proteus-2309.c6
-rw-r--r--drivers/media/rc/keymaps/rc-purpletv.c6
-rw-r--r--drivers/media/rc/keymaps/rc-pv951.c6
-rw-r--r--drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c6
-rw-r--r--drivers/media/rc/keymaps/rc-rc5-tv.c6
-rw-r--r--drivers/media/rc/keymaps/rc-rc6-mce.c6
-rw-r--r--drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c6
-rw-r--r--drivers/media/rc/keymaps/rc-streamzap.c6
-rw-r--r--drivers/media/rc/keymaps/rc-tbs-nec.c6
-rw-r--r--drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c6
-rw-r--r--drivers/media/rc/keymaps/rc-terratec-slim.c6
-rw-r--r--drivers/media/rc/keymaps/rc-tevii-nec.c6
-rw-r--r--drivers/media/rc/keymaps/rc-total-media-in-hand.c6
-rw-r--r--drivers/media/rc/keymaps/rc-trekstor.c6
-rw-r--r--drivers/media/rc/keymaps/rc-tt-1500.c6
-rw-r--r--drivers/media/rc/keymaps/rc-twinhan1027.c6
-rw-r--r--drivers/media/rc/keymaps/rc-videomate-s350.c6
-rw-r--r--drivers/media/rc/keymaps/rc-videomate-tv-pvr.c6
-rw-r--r--drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c6
-rw-r--r--drivers/media/rc/keymaps/rc-winfast.c6
86 files changed, 258 insertions, 258 deletions
diff --git a/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c b/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
index da6556dd1cf6..136d3952dedc 100644
--- a/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
+++ b/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.c
@@ -63,7 +63,7 @@ static struct rc_map_table adstech_dvb_t_pci[] = {
63 { 0x1c, KEY_VOLUMEDOWN }, 63 { 0x1c, KEY_VOLUMEDOWN },
64}; 64};
65 65
66static struct rc_keymap adstech_dvb_t_pci_map = { 66static struct rc_map_list adstech_dvb_t_pci_map = {
67 .map = { 67 .map = {
68 .scan = adstech_dvb_t_pci, 68 .scan = adstech_dvb_t_pci,
69 .size = ARRAY_SIZE(adstech_dvb_t_pci), 69 .size = ARRAY_SIZE(adstech_dvb_t_pci),
@@ -74,12 +74,12 @@ static struct rc_keymap adstech_dvb_t_pci_map = {
74 74
75static int __init init_rc_map_adstech_dvb_t_pci(void) 75static int __init init_rc_map_adstech_dvb_t_pci(void)
76{ 76{
77 return ir_register_map(&adstech_dvb_t_pci_map); 77 return rc_map_register(&adstech_dvb_t_pci_map);
78} 78}
79 79
80static void __exit exit_rc_map_adstech_dvb_t_pci(void) 80static void __exit exit_rc_map_adstech_dvb_t_pci(void)
81{ 81{
82 ir_unregister_map(&adstech_dvb_t_pci_map); 82 rc_map_unregister(&adstech_dvb_t_pci_map);
83} 83}
84 84
85module_init(init_rc_map_adstech_dvb_t_pci) 85module_init(init_rc_map_adstech_dvb_t_pci)
diff --git a/drivers/media/rc/keymaps/rc-alink-dtu-m.c b/drivers/media/rc/keymaps/rc-alink-dtu-m.c
index 36e1eb1d8347..fe652e928dc0 100644
--- a/drivers/media/rc/keymaps/rc-alink-dtu-m.c
+++ b/drivers/media/rc/keymaps/rc-alink-dtu-m.c
@@ -42,7 +42,7 @@ static struct rc_map_table alink_dtu_m[] = {
42 { 0x081d, KEY_CHANNELDOWN }, 42 { 0x081d, KEY_CHANNELDOWN },
43}; 43};
44 44
45static struct rc_keymap alink_dtu_m_map = { 45static struct rc_map_list alink_dtu_m_map = {
46 .map = { 46 .map = {
47 .scan = alink_dtu_m, 47 .scan = alink_dtu_m,
48 .size = ARRAY_SIZE(alink_dtu_m), 48 .size = ARRAY_SIZE(alink_dtu_m),
@@ -53,12 +53,12 @@ static struct rc_keymap alink_dtu_m_map = {
53 53
54static int __init init_rc_map_alink_dtu_m(void) 54static int __init init_rc_map_alink_dtu_m(void)
55{ 55{
56 return ir_register_map(&alink_dtu_m_map); 56 return rc_map_register(&alink_dtu_m_map);
57} 57}
58 58
59static void __exit exit_rc_map_alink_dtu_m(void) 59static void __exit exit_rc_map_alink_dtu_m(void)
60{ 60{
61 ir_unregister_map(&alink_dtu_m_map); 61 rc_map_unregister(&alink_dtu_m_map);
62} 62}
63 63
64module_init(init_rc_map_alink_dtu_m) 64module_init(init_rc_map_alink_dtu_m)
diff --git a/drivers/media/rc/keymaps/rc-anysee.c b/drivers/media/rc/keymaps/rc-anysee.c
index 6ca91e0704b9..884f1b51a8ee 100644
--- a/drivers/media/rc/keymaps/rc-anysee.c
+++ b/drivers/media/rc/keymaps/rc-anysee.c
@@ -67,7 +67,7 @@ static struct rc_map_table anysee[] = {
67 { 0x0851, KEY_PAUSE }, 67 { 0x0851, KEY_PAUSE },
68}; 68};
69 69
70static struct rc_keymap anysee_map = { 70static struct rc_map_list anysee_map = {
71 .map = { 71 .map = {
72 .scan = anysee, 72 .scan = anysee,
73 .size = ARRAY_SIZE(anysee), 73 .size = ARRAY_SIZE(anysee),
@@ -78,12 +78,12 @@ static struct rc_keymap anysee_map = {
78 78
79static int __init init_rc_map_anysee(void) 79static int __init init_rc_map_anysee(void)
80{ 80{
81 return ir_register_map(&anysee_map); 81 return rc_map_register(&anysee_map);
82} 82}
83 83
84static void __exit exit_rc_map_anysee(void) 84static void __exit exit_rc_map_anysee(void)
85{ 85{
86 ir_unregister_map(&anysee_map); 86 rc_map_unregister(&anysee_map);
87} 87}
88 88
89module_init(init_rc_map_anysee) 89module_init(init_rc_map_anysee)
diff --git a/drivers/media/rc/keymaps/rc-apac-viewcomp.c b/drivers/media/rc/keymaps/rc-apac-viewcomp.c
index a40a1b6ab6b1..7af188209ff9 100644
--- a/drivers/media/rc/keymaps/rc-apac-viewcomp.c
+++ b/drivers/media/rc/keymaps/rc-apac-viewcomp.c
@@ -54,7 +54,7 @@ static struct rc_map_table apac_viewcomp[] = {
54 { 0x18, KEY_KPMINUS }, /* fine tune <<<< */ 54 { 0x18, KEY_KPMINUS }, /* fine tune <<<< */
55}; 55};
56 56
57static struct rc_keymap apac_viewcomp_map = { 57static struct rc_map_list apac_viewcomp_map = {
58 .map = { 58 .map = {
59 .scan = apac_viewcomp, 59 .scan = apac_viewcomp,
60 .size = ARRAY_SIZE(apac_viewcomp), 60 .size = ARRAY_SIZE(apac_viewcomp),
@@ -65,12 +65,12 @@ static struct rc_keymap apac_viewcomp_map = {
65 65
66static int __init init_rc_map_apac_viewcomp(void) 66static int __init init_rc_map_apac_viewcomp(void)
67{ 67{
68 return ir_register_map(&apac_viewcomp_map); 68 return rc_map_register(&apac_viewcomp_map);
69} 69}
70 70
71static void __exit exit_rc_map_apac_viewcomp(void) 71static void __exit exit_rc_map_apac_viewcomp(void)
72{ 72{
73 ir_unregister_map(&apac_viewcomp_map); 73 rc_map_unregister(&apac_viewcomp_map);
74} 74}
75 75
76module_init(init_rc_map_apac_viewcomp) 76module_init(init_rc_map_apac_viewcomp)
diff --git a/drivers/media/rc/keymaps/rc-asus-pc39.c b/drivers/media/rc/keymaps/rc-asus-pc39.c
index 2a58ffe49bb6..b2481154491b 100644
--- a/drivers/media/rc/keymaps/rc-asus-pc39.c
+++ b/drivers/media/rc/keymaps/rc-asus-pc39.c
@@ -65,7 +65,7 @@ static struct rc_map_table asus_pc39[] = {
65 { 0x083e, KEY_DVD }, /* dvd */ 65 { 0x083e, KEY_DVD }, /* dvd */
66}; 66};
67 67
68static struct rc_keymap asus_pc39_map = { 68static struct rc_map_list asus_pc39_map = {
69 .map = { 69 .map = {
70 .scan = asus_pc39, 70 .scan = asus_pc39,
71 .size = ARRAY_SIZE(asus_pc39), 71 .size = ARRAY_SIZE(asus_pc39),
@@ -76,12 +76,12 @@ static struct rc_keymap asus_pc39_map = {
76 76
77static int __init init_rc_map_asus_pc39(void) 77static int __init init_rc_map_asus_pc39(void)
78{ 78{
79 return ir_register_map(&asus_pc39_map); 79 return rc_map_register(&asus_pc39_map);
80} 80}
81 81
82static void __exit exit_rc_map_asus_pc39(void) 82static void __exit exit_rc_map_asus_pc39(void)
83{ 83{
84 ir_unregister_map(&asus_pc39_map); 84 rc_map_unregister(&asus_pc39_map);
85} 85}
86 86
87module_init(init_rc_map_asus_pc39) 87module_init(init_rc_map_asus_pc39)
diff --git a/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c b/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
index ac0a7d981a92..f766b24b0158 100644
--- a/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
+++ b/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c
@@ -43,7 +43,7 @@ static struct rc_map_table ati_tv_wonder_hd_600[] = {
43 { 0x17, KEY_VOLUMEDOWN}, 43 { 0x17, KEY_VOLUMEDOWN},
44}; 44};
45 45
46static struct rc_keymap ati_tv_wonder_hd_600_map = { 46static struct rc_map_list ati_tv_wonder_hd_600_map = {
47 .map = { 47 .map = {
48 .scan = ati_tv_wonder_hd_600, 48 .scan = ati_tv_wonder_hd_600,
49 .size = ARRAY_SIZE(ati_tv_wonder_hd_600), 49 .size = ARRAY_SIZE(ati_tv_wonder_hd_600),
@@ -54,12 +54,12 @@ static struct rc_keymap ati_tv_wonder_hd_600_map = {
54 54
55static int __init init_rc_map_ati_tv_wonder_hd_600(void) 55static int __init init_rc_map_ati_tv_wonder_hd_600(void)
56{ 56{
57 return ir_register_map(&ati_tv_wonder_hd_600_map); 57 return rc_map_register(&ati_tv_wonder_hd_600_map);
58} 58}
59 59
60static void __exit exit_rc_map_ati_tv_wonder_hd_600(void) 60static void __exit exit_rc_map_ati_tv_wonder_hd_600(void)
61{ 61{
62 ir_unregister_map(&ati_tv_wonder_hd_600_map); 62 rc_map_unregister(&ati_tv_wonder_hd_600_map);
63} 63}
64 64
65module_init(init_rc_map_ati_tv_wonder_hd_600) 65module_init(init_rc_map_ati_tv_wonder_hd_600)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-a16d.c b/drivers/media/rc/keymaps/rc-avermedia-a16d.c
index df3360fb3dbe..ec9beeebd410 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-a16d.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-a16d.c
@@ -49,7 +49,7 @@ static struct rc_map_table avermedia_a16d[] = {
49 { 0x2a, KEY_MENU}, 49 { 0x2a, KEY_MENU},
50}; 50};
51 51
52static struct rc_keymap avermedia_a16d_map = { 52static struct rc_map_list avermedia_a16d_map = {
53 .map = { 53 .map = {
54 .scan = avermedia_a16d, 54 .scan = avermedia_a16d,
55 .size = ARRAY_SIZE(avermedia_a16d), 55 .size = ARRAY_SIZE(avermedia_a16d),
@@ -60,12 +60,12 @@ static struct rc_keymap avermedia_a16d_map = {
60 60
61static int __init init_rc_map_avermedia_a16d(void) 61static int __init init_rc_map_avermedia_a16d(void)
62{ 62{
63 return ir_register_map(&avermedia_a16d_map); 63 return rc_map_register(&avermedia_a16d_map);
64} 64}
65 65
66static void __exit exit_rc_map_avermedia_a16d(void) 66static void __exit exit_rc_map_avermedia_a16d(void)
67{ 67{
68 ir_unregister_map(&avermedia_a16d_map); 68 rc_map_unregister(&avermedia_a16d_map);
69} 69}
70 70
71module_init(init_rc_map_avermedia_a16d) 71module_init(init_rc_map_avermedia_a16d)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-cardbus.c b/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
index 40f2f2d418c6..bdf97b74cf90 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-cardbus.c
@@ -71,7 +71,7 @@ static struct rc_map_table avermedia_cardbus[] = {
71 { 0x43, KEY_CHANNELUP }, /* Channel up */ 71 { 0x43, KEY_CHANNELUP }, /* Channel up */
72}; 72};
73 73
74static struct rc_keymap avermedia_cardbus_map = { 74static struct rc_map_list avermedia_cardbus_map = {
75 .map = { 75 .map = {
76 .scan = avermedia_cardbus, 76 .scan = avermedia_cardbus,
77 .size = ARRAY_SIZE(avermedia_cardbus), 77 .size = ARRAY_SIZE(avermedia_cardbus),
@@ -82,12 +82,12 @@ static struct rc_keymap avermedia_cardbus_map = {
82 82
83static int __init init_rc_map_avermedia_cardbus(void) 83static int __init init_rc_map_avermedia_cardbus(void)
84{ 84{
85 return ir_register_map(&avermedia_cardbus_map); 85 return rc_map_register(&avermedia_cardbus_map);
86} 86}
87 87
88static void __exit exit_rc_map_avermedia_cardbus(void) 88static void __exit exit_rc_map_avermedia_cardbus(void)
89{ 89{
90 ir_unregister_map(&avermedia_cardbus_map); 90 rc_map_unregister(&avermedia_cardbus_map);
91} 91}
92 92
93module_init(init_rc_map_avermedia_cardbus) 93module_init(init_rc_map_avermedia_cardbus)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-dvbt.c b/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
index b4a1aa134360..3ddb41bc075e 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-dvbt.c
@@ -52,7 +52,7 @@ static struct rc_map_table avermedia_dvbt[] = {
52 { 0x3e, KEY_VOLUMEUP }, /* 'volume +' */ 52 { 0x3e, KEY_VOLUMEUP }, /* 'volume +' */
53}; 53};
54 54
55static struct rc_keymap avermedia_dvbt_map = { 55static struct rc_map_list avermedia_dvbt_map = {
56 .map = { 56 .map = {
57 .scan = avermedia_dvbt, 57 .scan = avermedia_dvbt,
58 .size = ARRAY_SIZE(avermedia_dvbt), 58 .size = ARRAY_SIZE(avermedia_dvbt),
@@ -63,12 +63,12 @@ static struct rc_keymap avermedia_dvbt_map = {
63 63
64static int __init init_rc_map_avermedia_dvbt(void) 64static int __init init_rc_map_avermedia_dvbt(void)
65{ 65{
66 return ir_register_map(&avermedia_dvbt_map); 66 return rc_map_register(&avermedia_dvbt_map);
67} 67}
68 68
69static void __exit exit_rc_map_avermedia_dvbt(void) 69static void __exit exit_rc_map_avermedia_dvbt(void)
70{ 70{
71 ir_unregister_map(&avermedia_dvbt_map); 71 rc_map_unregister(&avermedia_dvbt_map);
72} 72}
73 73
74module_init(init_rc_map_avermedia_dvbt) 74module_init(init_rc_map_avermedia_dvbt)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-m135a.c b/drivers/media/rc/keymaps/rc-avermedia-m135a.c
index 971c6f979e94..357fea58a46e 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-m135a.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-m135a.c
@@ -121,7 +121,7 @@ static struct rc_map_table avermedia_m135a[] = {
121 { 0x041e, KEY_NEXT }, 121 { 0x041e, KEY_NEXT },
122}; 122};
123 123
124static struct rc_keymap avermedia_m135a_map = { 124static struct rc_map_list avermedia_m135a_map = {
125 .map = { 125 .map = {
126 .scan = avermedia_m135a, 126 .scan = avermedia_m135a,
127 .size = ARRAY_SIZE(avermedia_m135a), 127 .size = ARRAY_SIZE(avermedia_m135a),
@@ -132,12 +132,12 @@ static struct rc_keymap avermedia_m135a_map = {
132 132
133static int __init init_rc_map_avermedia_m135a(void) 133static int __init init_rc_map_avermedia_m135a(void)
134{ 134{
135 return ir_register_map(&avermedia_m135a_map); 135 return rc_map_register(&avermedia_m135a_map);
136} 136}
137 137
138static void __exit exit_rc_map_avermedia_m135a(void) 138static void __exit exit_rc_map_avermedia_m135a(void)
139{ 139{
140 ir_unregister_map(&avermedia_m135a_map); 140 rc_map_unregister(&avermedia_m135a_map);
141} 141}
142 142
143module_init(init_rc_map_avermedia_m135a) 143module_init(init_rc_map_avermedia_m135a)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c b/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
index 74f3a20ff72a..e694e6eac37e 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-m733a-rm-k6.c
@@ -69,7 +69,7 @@ static struct rc_map_table avermedia_m733a_rm_k6[] = {
69 { 0x041e, KEY_NEXT }, 69 { 0x041e, KEY_NEXT },
70}; 70};
71 71
72static struct rc_keymap avermedia_m733a_rm_k6_map = { 72static struct rc_map_list avermedia_m733a_rm_k6_map = {
73 .map = { 73 .map = {
74 .scan = avermedia_m733a_rm_k6, 74 .scan = avermedia_m733a_rm_k6,
75 .size = ARRAY_SIZE(avermedia_m733a_rm_k6), 75 .size = ARRAY_SIZE(avermedia_m733a_rm_k6),
@@ -80,12 +80,12 @@ static struct rc_keymap avermedia_m733a_rm_k6_map = {
80 80
81static int __init init_rc_map_avermedia_m733a_rm_k6(void) 81static int __init init_rc_map_avermedia_m733a_rm_k6(void)
82{ 82{
83 return ir_register_map(&avermedia_m733a_rm_k6_map); 83 return rc_map_register(&avermedia_m733a_rm_k6_map);
84} 84}
85 85
86static void __exit exit_rc_map_avermedia_m733a_rm_k6(void) 86static void __exit exit_rc_map_avermedia_m733a_rm_k6(void)
87{ 87{
88 ir_unregister_map(&avermedia_m733a_rm_k6_map); 88 rc_map_unregister(&avermedia_m733a_rm_k6_map);
89} 89}
90 90
91module_init(init_rc_map_avermedia_m733a_rm_k6) 91module_init(init_rc_map_avermedia_m733a_rm_k6)
diff --git a/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c b/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
index dc6a32144e47..f4ca1fff455d 100644
--- a/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
+++ b/drivers/media/rc/keymaps/rc-avermedia-rm-ks.c
@@ -53,7 +53,7 @@ static struct rc_map_table avermedia_rm_ks[] = {
53 { 0x0556, KEY_ZOOM }, 53 { 0x0556, KEY_ZOOM },
54}; 54};
55 55
56static struct rc_keymap avermedia_rm_ks_map = { 56static struct rc_map_list avermedia_rm_ks_map = {
57 .map = { 57 .map = {
58 .scan = avermedia_rm_ks, 58 .scan = avermedia_rm_ks,
59 .size = ARRAY_SIZE(avermedia_rm_ks), 59 .size = ARRAY_SIZE(avermedia_rm_ks),
@@ -64,12 +64,12 @@ static struct rc_keymap avermedia_rm_ks_map = {
64 64
65static int __init init_rc_map_avermedia_rm_ks(void) 65static int __init init_rc_map_avermedia_rm_ks(void)
66{ 66{
67 return ir_register_map(&avermedia_rm_ks_map); 67 return rc_map_register(&avermedia_rm_ks_map);
68} 68}
69 69
70static void __exit exit_rc_map_avermedia_rm_ks(void) 70static void __exit exit_rc_map_avermedia_rm_ks(void)
71{ 71{
72 ir_unregister_map(&avermedia_rm_ks_map); 72 rc_map_unregister(&avermedia_rm_ks_map);
73} 73}
74 74
75module_init(init_rc_map_avermedia_rm_ks) 75module_init(init_rc_map_avermedia_rm_ks)
diff --git a/drivers/media/rc/keymaps/rc-avermedia.c b/drivers/media/rc/keymaps/rc-avermedia.c
index a5ef695e1797..edfa71506d3e 100644
--- a/drivers/media/rc/keymaps/rc-avermedia.c
+++ b/drivers/media/rc/keymaps/rc-avermedia.c
@@ -60,7 +60,7 @@ static struct rc_map_table avermedia[] = {
60 { 0x31, KEY_CHANNELUP } /* CHANNEL/PAGE+ */ 60 { 0x31, KEY_CHANNELUP } /* CHANNEL/PAGE+ */
61}; 61};
62 62
63static struct rc_keymap avermedia_map = { 63static struct rc_map_list avermedia_map = {
64 .map = { 64 .map = {
65 .scan = avermedia, 65 .scan = avermedia,
66 .size = ARRAY_SIZE(avermedia), 66 .size = ARRAY_SIZE(avermedia),
@@ -71,12 +71,12 @@ static struct rc_keymap avermedia_map = {
71 71
72static int __init init_rc_map_avermedia(void) 72static int __init init_rc_map_avermedia(void)
73{ 73{
74 return ir_register_map(&avermedia_map); 74 return rc_map_register(&avermedia_map);
75} 75}
76 76
77static void __exit exit_rc_map_avermedia(void) 77static void __exit exit_rc_map_avermedia(void)
78{ 78{
79 ir_unregister_map(&avermedia_map); 79 rc_map_unregister(&avermedia_map);
80} 80}
81 81
82module_init(init_rc_map_avermedia) 82module_init(init_rc_map_avermedia)
diff --git a/drivers/media/rc/keymaps/rc-avertv-303.c b/drivers/media/rc/keymaps/rc-avertv-303.c
index 386ba5922046..32e94988dc94 100644
--- a/drivers/media/rc/keymaps/rc-avertv-303.c
+++ b/drivers/media/rc/keymaps/rc-avertv-303.c
@@ -59,7 +59,7 @@ static struct rc_map_table avertv_303[] = {
59 { 0x1b, KEY_UP }, 59 { 0x1b, KEY_UP },
60}; 60};
61 61
62static struct rc_keymap avertv_303_map = { 62static struct rc_map_list avertv_303_map = {
63 .map = { 63 .map = {
64 .scan = avertv_303, 64 .scan = avertv_303,
65 .size = ARRAY_SIZE(avertv_303), 65 .size = ARRAY_SIZE(avertv_303),
@@ -70,12 +70,12 @@ static struct rc_keymap avertv_303_map = {
70 70
71static int __init init_rc_map_avertv_303(void) 71static int __init init_rc_map_avertv_303(void)
72{ 72{
73 return ir_register_map(&avertv_303_map); 73 return rc_map_register(&avertv_303_map);
74} 74}
75 75
76static void __exit exit_rc_map_avertv_303(void) 76static void __exit exit_rc_map_avertv_303(void)
77{ 77{
78 ir_unregister_map(&avertv_303_map); 78 rc_map_unregister(&avertv_303_map);
79} 79}
80 80
81module_init(init_rc_map_avertv_303) 81module_init(init_rc_map_avertv_303)
diff --git a/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c b/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
index fbaaba5f3893..c3f6d62ac892 100644
--- a/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
+++ b/drivers/media/rc/keymaps/rc-azurewave-ad-tu700.c
@@ -76,7 +76,7 @@ static struct rc_map_table azurewave_ad_tu700[] = {
76 { 0x005f, KEY_BLUE }, 76 { 0x005f, KEY_BLUE },
77}; 77};
78 78
79static struct rc_keymap azurewave_ad_tu700_map = { 79static struct rc_map_list azurewave_ad_tu700_map = {
80 .map = { 80 .map = {
81 .scan = azurewave_ad_tu700, 81 .scan = azurewave_ad_tu700,
82 .size = ARRAY_SIZE(azurewave_ad_tu700), 82 .size = ARRAY_SIZE(azurewave_ad_tu700),
@@ -87,12 +87,12 @@ static struct rc_keymap azurewave_ad_tu700_map = {
87 87
88static int __init init_rc_map_azurewave_ad_tu700(void) 88static int __init init_rc_map_azurewave_ad_tu700(void)
89{ 89{
90 return ir_register_map(&azurewave_ad_tu700_map); 90 return rc_map_register(&azurewave_ad_tu700_map);
91} 91}
92 92
93static void __exit exit_rc_map_azurewave_ad_tu700(void) 93static void __exit exit_rc_map_azurewave_ad_tu700(void)
94{ 94{
95 ir_unregister_map(&azurewave_ad_tu700_map); 95 rc_map_unregister(&azurewave_ad_tu700_map);
96} 96}
97 97
98module_init(init_rc_map_azurewave_ad_tu700) 98module_init(init_rc_map_azurewave_ad_tu700)
diff --git a/drivers/media/rc/keymaps/rc-behold-columbus.c b/drivers/media/rc/keymaps/rc-behold-columbus.c
index 33accf5b3998..4b787fa94f08 100644
--- a/drivers/media/rc/keymaps/rc-behold-columbus.c
+++ b/drivers/media/rc/keymaps/rc-behold-columbus.c
@@ -82,7 +82,7 @@ static struct rc_map_table behold_columbus[] = {
82 82
83}; 83};
84 84
85static struct rc_keymap behold_columbus_map = { 85static struct rc_map_list behold_columbus_map = {
86 .map = { 86 .map = {
87 .scan = behold_columbus, 87 .scan = behold_columbus,
88 .size = ARRAY_SIZE(behold_columbus), 88 .size = ARRAY_SIZE(behold_columbus),
@@ -93,12 +93,12 @@ static struct rc_keymap behold_columbus_map = {
93 93
94static int __init init_rc_map_behold_columbus(void) 94static int __init init_rc_map_behold_columbus(void)
95{ 95{
96 return ir_register_map(&behold_columbus_map); 96 return rc_map_register(&behold_columbus_map);
97} 97}
98 98
99static void __exit exit_rc_map_behold_columbus(void) 99static void __exit exit_rc_map_behold_columbus(void)
100{ 100{
101 ir_unregister_map(&behold_columbus_map); 101 rc_map_unregister(&behold_columbus_map);
102} 102}
103 103
104module_init(init_rc_map_behold_columbus) 104module_init(init_rc_map_behold_columbus)
diff --git a/drivers/media/rc/keymaps/rc-behold.c b/drivers/media/rc/keymaps/rc-behold.c
index 4402414bacd9..ae4d2354c7b9 100644
--- a/drivers/media/rc/keymaps/rc-behold.c
+++ b/drivers/media/rc/keymaps/rc-behold.c
@@ -115,7 +115,7 @@ static struct rc_map_table behold[] = {
115 115
116}; 116};
117 117
118static struct rc_keymap behold_map = { 118static struct rc_map_list behold_map = {
119 .map = { 119 .map = {
120 .scan = behold, 120 .scan = behold,
121 .size = ARRAY_SIZE(behold), 121 .size = ARRAY_SIZE(behold),
@@ -126,12 +126,12 @@ static struct rc_keymap behold_map = {
126 126
127static int __init init_rc_map_behold(void) 127static int __init init_rc_map_behold(void)
128{ 128{
129 return ir_register_map(&behold_map); 129 return rc_map_register(&behold_map);
130} 130}
131 131
132static void __exit exit_rc_map_behold(void) 132static void __exit exit_rc_map_behold(void)
133{ 133{
134 ir_unregister_map(&behold_map); 134 rc_map_unregister(&behold_map);
135} 135}
136 136
137module_init(init_rc_map_behold) 137module_init(init_rc_map_behold)
diff --git a/drivers/media/rc/keymaps/rc-budget-ci-old.c b/drivers/media/rc/keymaps/rc-budget-ci-old.c
index e4827a6abf31..97fc3862f608 100644
--- a/drivers/media/rc/keymaps/rc-budget-ci-old.c
+++ b/drivers/media/rc/keymaps/rc-budget-ci-old.c
@@ -66,7 +66,7 @@ static struct rc_map_table budget_ci_old[] = {
66 { 0x3e, KEY_TUNER }, 66 { 0x3e, KEY_TUNER },
67}; 67};
68 68
69static struct rc_keymap budget_ci_old_map = { 69static struct rc_map_list budget_ci_old_map = {
70 .map = { 70 .map = {
71 .scan = budget_ci_old, 71 .scan = budget_ci_old,
72 .size = ARRAY_SIZE(budget_ci_old), 72 .size = ARRAY_SIZE(budget_ci_old),
@@ -77,12 +77,12 @@ static struct rc_keymap budget_ci_old_map = {
77 77
78static int __init init_rc_map_budget_ci_old(void) 78static int __init init_rc_map_budget_ci_old(void)
79{ 79{
80 return ir_register_map(&budget_ci_old_map); 80 return rc_map_register(&budget_ci_old_map);
81} 81}
82 82
83static void __exit exit_rc_map_budget_ci_old(void) 83static void __exit exit_rc_map_budget_ci_old(void)
84{ 84{
85 ir_unregister_map(&budget_ci_old_map); 85 rc_map_unregister(&budget_ci_old_map);
86} 86}
87 87
88module_init(init_rc_map_budget_ci_old) 88module_init(init_rc_map_budget_ci_old)
diff --git a/drivers/media/rc/keymaps/rc-cinergy-1400.c b/drivers/media/rc/keymaps/rc-cinergy-1400.c
index 6a69866d836c..284534b67e7d 100644
--- a/drivers/media/rc/keymaps/rc-cinergy-1400.c
+++ b/drivers/media/rc/keymaps/rc-cinergy-1400.c
@@ -58,7 +58,7 @@ static struct rc_map_table cinergy_1400[] = {
58 { 0x5c, KEY_NEXT }, 58 { 0x5c, KEY_NEXT },
59}; 59};
60 60
61static struct rc_keymap cinergy_1400_map = { 61static struct rc_map_list cinergy_1400_map = {
62 .map = { 62 .map = {
63 .scan = cinergy_1400, 63 .scan = cinergy_1400,
64 .size = ARRAY_SIZE(cinergy_1400), 64 .size = ARRAY_SIZE(cinergy_1400),
@@ -69,12 +69,12 @@ static struct rc_keymap cinergy_1400_map = {
69 69
70static int __init init_rc_map_cinergy_1400(void) 70static int __init init_rc_map_cinergy_1400(void)
71{ 71{
72 return ir_register_map(&cinergy_1400_map); 72 return rc_map_register(&cinergy_1400_map);
73} 73}
74 74
75static void __exit exit_rc_map_cinergy_1400(void) 75static void __exit exit_rc_map_cinergy_1400(void)
76{ 76{
77 ir_unregister_map(&cinergy_1400_map); 77 rc_map_unregister(&cinergy_1400_map);
78} 78}
79 79
80module_init(init_rc_map_cinergy_1400) 80module_init(init_rc_map_cinergy_1400)
diff --git a/drivers/media/rc/keymaps/rc-cinergy.c b/drivers/media/rc/keymaps/rc-cinergy.c
index ba36d14a01a0..99520ff65b61 100644
--- a/drivers/media/rc/keymaps/rc-cinergy.c
+++ b/drivers/media/rc/keymaps/rc-cinergy.c
@@ -52,7 +52,7 @@ static struct rc_map_table cinergy[] = {
52 { 0x23, KEY_STOP }, 52 { 0x23, KEY_STOP },
53}; 53};
54 54
55static struct rc_keymap cinergy_map = { 55static struct rc_map_list cinergy_map = {
56 .map = { 56 .map = {
57 .scan = cinergy, 57 .scan = cinergy,
58 .size = ARRAY_SIZE(cinergy), 58 .size = ARRAY_SIZE(cinergy),
@@ -63,12 +63,12 @@ static struct rc_keymap cinergy_map = {
63 63
64static int __init init_rc_map_cinergy(void) 64static int __init init_rc_map_cinergy(void)
65{ 65{
66 return ir_register_map(&cinergy_map); 66 return rc_map_register(&cinergy_map);
67} 67}
68 68
69static void __exit exit_rc_map_cinergy(void) 69static void __exit exit_rc_map_cinergy(void)
70{ 70{
71 ir_unregister_map(&cinergy_map); 71 rc_map_unregister(&cinergy_map);
72} 72}
73 73
74module_init(init_rc_map_cinergy) 74module_init(init_rc_map_cinergy)
diff --git a/drivers/media/rc/keymaps/rc-dib0700-nec.c b/drivers/media/rc/keymaps/rc-dib0700-nec.c
index 921230d84b84..c59851b203da 100644
--- a/drivers/media/rc/keymaps/rc-dib0700-nec.c
+++ b/drivers/media/rc/keymaps/rc-dib0700-nec.c
@@ -98,7 +98,7 @@ static struct rc_map_table dib0700_nec_table[] = {
98 { 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */ 98 { 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
99}; 99};
100 100
101static struct rc_keymap dib0700_nec_map = { 101static struct rc_map_list dib0700_nec_map = {
102 .map = { 102 .map = {
103 .scan = dib0700_nec_table, 103 .scan = dib0700_nec_table,
104 .size = ARRAY_SIZE(dib0700_nec_table), 104 .size = ARRAY_SIZE(dib0700_nec_table),
@@ -109,12 +109,12 @@ static struct rc_keymap dib0700_nec_map = {
109 109
110static int __init init_rc_map(void) 110static int __init init_rc_map(void)
111{ 111{
112 return ir_register_map(&dib0700_nec_map); 112 return rc_map_register(&dib0700_nec_map);
113} 113}
114 114
115static void __exit exit_rc_map(void) 115static void __exit exit_rc_map(void)
116{ 116{
117 ir_unregister_map(&dib0700_nec_map); 117 rc_map_unregister(&dib0700_nec_map);
118} 118}
119 119
120module_init(init_rc_map) 120module_init(init_rc_map)
diff --git a/drivers/media/rc/keymaps/rc-dib0700-rc5.c b/drivers/media/rc/keymaps/rc-dib0700-rc5.c
index 9febb722c402..4af12e45dfba 100644
--- a/drivers/media/rc/keymaps/rc-dib0700-rc5.c
+++ b/drivers/media/rc/keymaps/rc-dib0700-rc5.c
@@ -209,7 +209,7 @@ static struct rc_map_table dib0700_rc5_table[] = {
209 { 0x1d3d, KEY_POWER }, 209 { 0x1d3d, KEY_POWER },
210}; 210};
211 211
212static struct rc_keymap dib0700_rc5_map = { 212static struct rc_map_list dib0700_rc5_map = {
213 .map = { 213 .map = {
214 .scan = dib0700_rc5_table, 214 .scan = dib0700_rc5_table,
215 .size = ARRAY_SIZE(dib0700_rc5_table), 215 .size = ARRAY_SIZE(dib0700_rc5_table),
@@ -220,12 +220,12 @@ static struct rc_keymap dib0700_rc5_map = {
220 220
221static int __init init_rc_map(void) 221static int __init init_rc_map(void)
222{ 222{
223 return ir_register_map(&dib0700_rc5_map); 223 return rc_map_register(&dib0700_rc5_map);
224} 224}
225 225
226static void __exit exit_rc_map(void) 226static void __exit exit_rc_map(void)
227{ 227{
228 ir_unregister_map(&dib0700_rc5_map); 228 rc_map_unregister(&dib0700_rc5_map);
229} 229}
230 230
231module_init(init_rc_map) 231module_init(init_rc_map)
diff --git a/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c b/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
index da50d7dbb9ef..f68b450f5593 100644
--- a/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
+++ b/drivers/media/rc/keymaps/rc-digitalnow-tinytwin.c
@@ -72,7 +72,7 @@ static struct rc_map_table digitalnow_tinytwin[] = {
72 { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 72 { 0x005a, KEY_PREVIOUS }, /* REPLAY */
73}; 73};
74 74
75static struct rc_keymap digitalnow_tinytwin_map = { 75static struct rc_map_list digitalnow_tinytwin_map = {
76 .map = { 76 .map = {
77 .scan = digitalnow_tinytwin, 77 .scan = digitalnow_tinytwin,
78 .size = ARRAY_SIZE(digitalnow_tinytwin), 78 .size = ARRAY_SIZE(digitalnow_tinytwin),
@@ -83,12 +83,12 @@ static struct rc_keymap digitalnow_tinytwin_map = {
83 83
84static int __init init_rc_map_digitalnow_tinytwin(void) 84static int __init init_rc_map_digitalnow_tinytwin(void)
85{ 85{
86 return ir_register_map(&digitalnow_tinytwin_map); 86 return rc_map_register(&digitalnow_tinytwin_map);
87} 87}
88 88
89static void __exit exit_rc_map_digitalnow_tinytwin(void) 89static void __exit exit_rc_map_digitalnow_tinytwin(void)
90{ 90{
91 ir_unregister_map(&digitalnow_tinytwin_map); 91 rc_map_unregister(&digitalnow_tinytwin_map);
92} 92}
93 93
94module_init(init_rc_map_digitalnow_tinytwin) 94module_init(init_rc_map_digitalnow_tinytwin)
diff --git a/drivers/media/rc/keymaps/rc-digittrade.c b/drivers/media/rc/keymaps/rc-digittrade.c
index 706f95dd6bdc..21d49871f2a3 100644
--- a/drivers/media/rc/keymaps/rc-digittrade.c
+++ b/drivers/media/rc/keymaps/rc-digittrade.c
@@ -56,7 +56,7 @@ static struct rc_map_table digittrade[] = {
56 { 0x0054, KEY_0 }, 56 { 0x0054, KEY_0 },
57}; 57};
58 58
59static struct rc_keymap digittrade_map = { 59static struct rc_map_list digittrade_map = {
60 .map = { 60 .map = {
61 .scan = digittrade, 61 .scan = digittrade,
62 .size = ARRAY_SIZE(digittrade), 62 .size = ARRAY_SIZE(digittrade),
@@ -67,12 +67,12 @@ static struct rc_keymap digittrade_map = {
67 67
68static int __init init_rc_map_digittrade(void) 68static int __init init_rc_map_digittrade(void)
69{ 69{
70 return ir_register_map(&digittrade_map); 70 return rc_map_register(&digittrade_map);
71} 71}
72 72
73static void __exit exit_rc_map_digittrade(void) 73static void __exit exit_rc_map_digittrade(void)
74{ 74{
75 ir_unregister_map(&digittrade_map); 75 rc_map_unregister(&digittrade_map);
76} 76}
77 77
78module_init(init_rc_map_digittrade) 78module_init(init_rc_map_digittrade)
diff --git a/drivers/media/rc/keymaps/rc-dm1105-nec.c b/drivers/media/rc/keymaps/rc-dm1105-nec.c
index 9023dc9a65aa..d024fbf88bc4 100644
--- a/drivers/media/rc/keymaps/rc-dm1105-nec.c
+++ b/drivers/media/rc/keymaps/rc-dm1105-nec.c
@@ -50,7 +50,7 @@ static struct rc_map_table dm1105_nec[] = {
50 { 0x1b, KEY_B}, /* recall */ 50 { 0x1b, KEY_B}, /* recall */
51}; 51};
52 52
53static struct rc_keymap dm1105_nec_map = { 53static struct rc_map_list dm1105_nec_map = {
54 .map = { 54 .map = {
55 .scan = dm1105_nec, 55 .scan = dm1105_nec,
56 .size = ARRAY_SIZE(dm1105_nec), 56 .size = ARRAY_SIZE(dm1105_nec),
@@ -61,12 +61,12 @@ static struct rc_keymap dm1105_nec_map = {
61 61
62static int __init init_rc_map_dm1105_nec(void) 62static int __init init_rc_map_dm1105_nec(void)
63{ 63{
64 return ir_register_map(&dm1105_nec_map); 64 return rc_map_register(&dm1105_nec_map);
65} 65}
66 66
67static void __exit exit_rc_map_dm1105_nec(void) 67static void __exit exit_rc_map_dm1105_nec(void)
68{ 68{
69 ir_unregister_map(&dm1105_nec_map); 69 rc_map_unregister(&dm1105_nec_map);
70} 70}
71 71
72module_init(init_rc_map_dm1105_nec) 72module_init(init_rc_map_dm1105_nec)
diff --git a/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c b/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
index 7fbeaed46516..43912bd02a9e 100644
--- a/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
+++ b/drivers/media/rc/keymaps/rc-dntv-live-dvb-t.c
@@ -52,7 +52,7 @@ static struct rc_map_table dntv_live_dvb_t[] = {
52 { 0x1f, KEY_VOLUMEDOWN }, 52 { 0x1f, KEY_VOLUMEDOWN },
53}; 53};
54 54
55static struct rc_keymap dntv_live_dvb_t_map = { 55static struct rc_map_list dntv_live_dvb_t_map = {
56 .map = { 56 .map = {
57 .scan = dntv_live_dvb_t, 57 .scan = dntv_live_dvb_t,
58 .size = ARRAY_SIZE(dntv_live_dvb_t), 58 .size = ARRAY_SIZE(dntv_live_dvb_t),
@@ -63,12 +63,12 @@ static struct rc_keymap dntv_live_dvb_t_map = {
63 63
64static int __init init_rc_map_dntv_live_dvb_t(void) 64static int __init init_rc_map_dntv_live_dvb_t(void)
65{ 65{
66 return ir_register_map(&dntv_live_dvb_t_map); 66 return rc_map_register(&dntv_live_dvb_t_map);
67} 67}
68 68
69static void __exit exit_rc_map_dntv_live_dvb_t(void) 69static void __exit exit_rc_map_dntv_live_dvb_t(void)
70{ 70{
71 ir_unregister_map(&dntv_live_dvb_t_map); 71 rc_map_unregister(&dntv_live_dvb_t_map);
72} 72}
73 73
74module_init(init_rc_map_dntv_live_dvb_t) 74module_init(init_rc_map_dntv_live_dvb_t)
diff --git a/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c b/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
index 660f2e793d9a..015e99de06de 100644
--- a/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
+++ b/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c
@@ -71,7 +71,7 @@ static struct rc_map_table dntv_live_dvbt_pro[] = {
71 { 0x5d, KEY_BLUE }, 71 { 0x5d, KEY_BLUE },
72}; 72};
73 73
74static struct rc_keymap dntv_live_dvbt_pro_map = { 74static struct rc_map_list dntv_live_dvbt_pro_map = {
75 .map = { 75 .map = {
76 .scan = dntv_live_dvbt_pro, 76 .scan = dntv_live_dvbt_pro,
77 .size = ARRAY_SIZE(dntv_live_dvbt_pro), 77 .size = ARRAY_SIZE(dntv_live_dvbt_pro),
@@ -82,12 +82,12 @@ static struct rc_keymap dntv_live_dvbt_pro_map = {
82 82
83static int __init init_rc_map_dntv_live_dvbt_pro(void) 83static int __init init_rc_map_dntv_live_dvbt_pro(void)
84{ 84{
85 return ir_register_map(&dntv_live_dvbt_pro_map); 85 return rc_map_register(&dntv_live_dvbt_pro_map);
86} 86}
87 87
88static void __exit exit_rc_map_dntv_live_dvbt_pro(void) 88static void __exit exit_rc_map_dntv_live_dvbt_pro(void)
89{ 89{
90 ir_unregister_map(&dntv_live_dvbt_pro_map); 90 rc_map_unregister(&dntv_live_dvbt_pro_map);
91} 91}
92 92
93module_init(init_rc_map_dntv_live_dvbt_pro) 93module_init(init_rc_map_dntv_live_dvbt_pro)
diff --git a/drivers/media/rc/keymaps/rc-em-terratec.c b/drivers/media/rc/keymaps/rc-em-terratec.c
index 4d0ad8ca41a2..269d4299da34 100644
--- a/drivers/media/rc/keymaps/rc-em-terratec.c
+++ b/drivers/media/rc/keymaps/rc-em-terratec.c
@@ -43,7 +43,7 @@ static struct rc_map_table em_terratec[] = {
43 { 0x40, KEY_ZOOM }, 43 { 0x40, KEY_ZOOM },
44}; 44};
45 45
46static struct rc_keymap em_terratec_map = { 46static struct rc_map_list em_terratec_map = {
47 .map = { 47 .map = {
48 .scan = em_terratec, 48 .scan = em_terratec,
49 .size = ARRAY_SIZE(em_terratec), 49 .size = ARRAY_SIZE(em_terratec),
@@ -54,12 +54,12 @@ static struct rc_keymap em_terratec_map = {
54 54
55static int __init init_rc_map_em_terratec(void) 55static int __init init_rc_map_em_terratec(void)
56{ 56{
57 return ir_register_map(&em_terratec_map); 57 return rc_map_register(&em_terratec_map);
58} 58}
59 59
60static void __exit exit_rc_map_em_terratec(void) 60static void __exit exit_rc_map_em_terratec(void)
61{ 61{
62 ir_unregister_map(&em_terratec_map); 62 rc_map_unregister(&em_terratec_map);
63} 63}
64 64
65module_init(init_rc_map_em_terratec) 65module_init(init_rc_map_em_terratec)
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c b/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
index 3005d4baf211..e388698a0697 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv-fm53.c
@@ -55,7 +55,7 @@ static struct rc_map_table encore_enltv_fm53[] = {
55 { 0x47, KEY_SLEEP}, /* shutdown */ 55 { 0x47, KEY_SLEEP}, /* shutdown */
56}; 56};
57 57
58static struct rc_keymap encore_enltv_fm53_map = { 58static struct rc_map_list encore_enltv_fm53_map = {
59 .map = { 59 .map = {
60 .scan = encore_enltv_fm53, 60 .scan = encore_enltv_fm53,
61 .size = ARRAY_SIZE(encore_enltv_fm53), 61 .size = ARRAY_SIZE(encore_enltv_fm53),
@@ -66,12 +66,12 @@ static struct rc_keymap encore_enltv_fm53_map = {
66 66
67static int __init init_rc_map_encore_enltv_fm53(void) 67static int __init init_rc_map_encore_enltv_fm53(void)
68{ 68{
69 return ir_register_map(&encore_enltv_fm53_map); 69 return rc_map_register(&encore_enltv_fm53_map);
70} 70}
71 71
72static void __exit exit_rc_map_encore_enltv_fm53(void) 72static void __exit exit_rc_map_encore_enltv_fm53(void)
73{ 73{
74 ir_unregister_map(&encore_enltv_fm53_map); 74 rc_map_unregister(&encore_enltv_fm53_map);
75} 75}
76 76
77module_init(init_rc_map_encore_enltv_fm53) 77module_init(init_rc_map_encore_enltv_fm53)
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv.c b/drivers/media/rc/keymaps/rc-encore-enltv.c
index d16db500ed31..afa4e92284ef 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv.c
@@ -86,7 +86,7 @@ static struct rc_map_table encore_enltv[] = {
86 { 0x57, KEY_BLUE }, /* AP4 */ 86 { 0x57, KEY_BLUE }, /* AP4 */
87}; 87};
88 88
89static struct rc_keymap encore_enltv_map = { 89static struct rc_map_list encore_enltv_map = {
90 .map = { 90 .map = {
91 .scan = encore_enltv, 91 .scan = encore_enltv,
92 .size = ARRAY_SIZE(encore_enltv), 92 .size = ARRAY_SIZE(encore_enltv),
@@ -97,12 +97,12 @@ static struct rc_keymap encore_enltv_map = {
97 97
98static int __init init_rc_map_encore_enltv(void) 98static int __init init_rc_map_encore_enltv(void)
99{ 99{
100 return ir_register_map(&encore_enltv_map); 100 return rc_map_register(&encore_enltv_map);
101} 101}
102 102
103static void __exit exit_rc_map_encore_enltv(void) 103static void __exit exit_rc_map_encore_enltv(void)
104{ 104{
105 ir_unregister_map(&encore_enltv_map); 105 rc_map_unregister(&encore_enltv_map);
106} 106}
107 107
108module_init(init_rc_map_encore_enltv) 108module_init(init_rc_map_encore_enltv)
diff --git a/drivers/media/rc/keymaps/rc-encore-enltv2.c b/drivers/media/rc/keymaps/rc-encore-enltv2.c
index a5e07c7e6eaf..7d5b00ed4ff2 100644
--- a/drivers/media/rc/keymaps/rc-encore-enltv2.c
+++ b/drivers/media/rc/keymaps/rc-encore-enltv2.c
@@ -64,7 +64,7 @@ static struct rc_map_table encore_enltv2[] = {
64 { 0x79, KEY_STOP }, 64 { 0x79, KEY_STOP },
65}; 65};
66 66
67static struct rc_keymap encore_enltv2_map = { 67static struct rc_map_list encore_enltv2_map = {
68 .map = { 68 .map = {
69 .scan = encore_enltv2, 69 .scan = encore_enltv2,
70 .size = ARRAY_SIZE(encore_enltv2), 70 .size = ARRAY_SIZE(encore_enltv2),
@@ -75,12 +75,12 @@ static struct rc_keymap encore_enltv2_map = {
75 75
76static int __init init_rc_map_encore_enltv2(void) 76static int __init init_rc_map_encore_enltv2(void)
77{ 77{
78 return ir_register_map(&encore_enltv2_map); 78 return rc_map_register(&encore_enltv2_map);
79} 79}
80 80
81static void __exit exit_rc_map_encore_enltv2(void) 81static void __exit exit_rc_map_encore_enltv2(void)
82{ 82{
83 ir_unregister_map(&encore_enltv2_map); 83 rc_map_unregister(&encore_enltv2_map);
84} 84}
85 85
86module_init(init_rc_map_encore_enltv2) 86module_init(init_rc_map_encore_enltv2)
diff --git a/drivers/media/rc/keymaps/rc-evga-indtube.c b/drivers/media/rc/keymaps/rc-evga-indtube.c
index e2d0590d3323..a2bf24f6dfbb 100644
--- a/drivers/media/rc/keymaps/rc-evga-indtube.c
+++ b/drivers/media/rc/keymaps/rc-evga-indtube.c
@@ -35,7 +35,7 @@ static struct rc_map_table evga_indtube[] = {
35 { 0x13, KEY_CAMERA}, 35 { 0x13, KEY_CAMERA},
36}; 36};
37 37
38static struct rc_keymap evga_indtube_map = { 38static struct rc_map_list evga_indtube_map = {
39 .map = { 39 .map = {
40 .scan = evga_indtube, 40 .scan = evga_indtube,
41 .size = ARRAY_SIZE(evga_indtube), 41 .size = ARRAY_SIZE(evga_indtube),
@@ -46,12 +46,12 @@ static struct rc_keymap evga_indtube_map = {
46 46
47static int __init init_rc_map_evga_indtube(void) 47static int __init init_rc_map_evga_indtube(void)
48{ 48{
49 return ir_register_map(&evga_indtube_map); 49 return rc_map_register(&evga_indtube_map);
50} 50}
51 51
52static void __exit exit_rc_map_evga_indtube(void) 52static void __exit exit_rc_map_evga_indtube(void)
53{ 53{
54 ir_unregister_map(&evga_indtube_map); 54 rc_map_unregister(&evga_indtube_map);
55} 55}
56 56
57module_init(init_rc_map_evga_indtube) 57module_init(init_rc_map_evga_indtube)
diff --git a/drivers/media/rc/keymaps/rc-eztv.c b/drivers/media/rc/keymaps/rc-eztv.c
index ee134c58d033..1e8e5b2d6e36 100644
--- a/drivers/media/rc/keymaps/rc-eztv.c
+++ b/drivers/media/rc/keymaps/rc-eztv.c
@@ -70,7 +70,7 @@ static struct rc_map_table eztv[] = {
70 { 0x21, KEY_DOT }, /* . (decimal dot) */ 70 { 0x21, KEY_DOT }, /* . (decimal dot) */
71}; 71};
72 72
73static struct rc_keymap eztv_map = { 73static struct rc_map_list eztv_map = {
74 .map = { 74 .map = {
75 .scan = eztv, 75 .scan = eztv,
76 .size = ARRAY_SIZE(eztv), 76 .size = ARRAY_SIZE(eztv),
@@ -81,12 +81,12 @@ static struct rc_keymap eztv_map = {
81 81
82static int __init init_rc_map_eztv(void) 82static int __init init_rc_map_eztv(void)
83{ 83{
84 return ir_register_map(&eztv_map); 84 return rc_map_register(&eztv_map);
85} 85}
86 86
87static void __exit exit_rc_map_eztv(void) 87static void __exit exit_rc_map_eztv(void)
88{ 88{
89 ir_unregister_map(&eztv_map); 89 rc_map_unregister(&eztv_map);
90} 90}
91 91
92module_init(init_rc_map_eztv) 92module_init(init_rc_map_eztv)
diff --git a/drivers/media/rc/keymaps/rc-flydvb.c b/drivers/media/rc/keymaps/rc-flydvb.c
index ef90a05a16f2..aea2f4acf7d8 100644
--- a/drivers/media/rc/keymaps/rc-flydvb.c
+++ b/drivers/media/rc/keymaps/rc-flydvb.c
@@ -51,7 +51,7 @@ static struct rc_map_table flydvb[] = {
51 { 0x0e, KEY_NEXT }, /* End >>| */ 51 { 0x0e, KEY_NEXT }, /* End >>| */
52}; 52};
53 53
54static struct rc_keymap flydvb_map = { 54static struct rc_map_list flydvb_map = {
55 .map = { 55 .map = {
56 .scan = flydvb, 56 .scan = flydvb,
57 .size = ARRAY_SIZE(flydvb), 57 .size = ARRAY_SIZE(flydvb),
@@ -62,12 +62,12 @@ static struct rc_keymap flydvb_map = {
62 62
63static int __init init_rc_map_flydvb(void) 63static int __init init_rc_map_flydvb(void)
64{ 64{
65 return ir_register_map(&flydvb_map); 65 return rc_map_register(&flydvb_map);
66} 66}
67 67
68static void __exit exit_rc_map_flydvb(void) 68static void __exit exit_rc_map_flydvb(void)
69{ 69{
70 ir_unregister_map(&flydvb_map); 70 rc_map_unregister(&flydvb_map);
71} 71}
72 72
73module_init(init_rc_map_flydvb) 73module_init(init_rc_map_flydvb)
diff --git a/drivers/media/rc/keymaps/rc-flyvideo.c b/drivers/media/rc/keymaps/rc-flyvideo.c
index 20a133325e6e..5bbe68371756 100644
--- a/drivers/media/rc/keymaps/rc-flyvideo.c
+++ b/drivers/media/rc/keymaps/rc-flyvideo.c
@@ -44,7 +44,7 @@ static struct rc_map_table flyvideo[] = {
44 { 0x0a, KEY_ANGLE }, /* no label, may be used as the PAUSE button */ 44 { 0x0a, KEY_ANGLE }, /* no label, may be used as the PAUSE button */
45}; 45};
46 46
47static struct rc_keymap flyvideo_map = { 47static struct rc_map_list flyvideo_map = {
48 .map = { 48 .map = {
49 .scan = flyvideo, 49 .scan = flyvideo,
50 .size = ARRAY_SIZE(flyvideo), 50 .size = ARRAY_SIZE(flyvideo),
@@ -55,12 +55,12 @@ static struct rc_keymap flyvideo_map = {
55 55
56static int __init init_rc_map_flyvideo(void) 56static int __init init_rc_map_flyvideo(void)
57{ 57{
58 return ir_register_map(&flyvideo_map); 58 return rc_map_register(&flyvideo_map);
59} 59}
60 60
61static void __exit exit_rc_map_flyvideo(void) 61static void __exit exit_rc_map_flyvideo(void)
62{ 62{
63 ir_unregister_map(&flyvideo_map); 63 rc_map_unregister(&flyvideo_map);
64} 64}
65 65
66module_init(init_rc_map_flyvideo) 66module_init(init_rc_map_flyvideo)
diff --git a/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c b/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
index 2687af77a806..c80b25c65b57 100644
--- a/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
+++ b/drivers/media/rc/keymaps/rc-fusionhdtv-mce.c
@@ -72,7 +72,7 @@ static struct rc_map_table fusionhdtv_mce[] = {
72 { 0x4e, KEY_POWER }, 72 { 0x4e, KEY_POWER },
73}; 73};
74 74
75static struct rc_keymap fusionhdtv_mce_map = { 75static struct rc_map_list fusionhdtv_mce_map = {
76 .map = { 76 .map = {
77 .scan = fusionhdtv_mce, 77 .scan = fusionhdtv_mce,
78 .size = ARRAY_SIZE(fusionhdtv_mce), 78 .size = ARRAY_SIZE(fusionhdtv_mce),
@@ -83,12 +83,12 @@ static struct rc_keymap fusionhdtv_mce_map = {
83 83
84static int __init init_rc_map_fusionhdtv_mce(void) 84static int __init init_rc_map_fusionhdtv_mce(void)
85{ 85{
86 return ir_register_map(&fusionhdtv_mce_map); 86 return rc_map_register(&fusionhdtv_mce_map);
87} 87}
88 88
89static void __exit exit_rc_map_fusionhdtv_mce(void) 89static void __exit exit_rc_map_fusionhdtv_mce(void)
90{ 90{
91 ir_unregister_map(&fusionhdtv_mce_map); 91 rc_map_unregister(&fusionhdtv_mce_map);
92} 92}
93 93
94module_init(init_rc_map_fusionhdtv_mce) 94module_init(init_rc_map_fusionhdtv_mce)
diff --git a/drivers/media/rc/keymaps/rc-gadmei-rm008z.c b/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
index fb247baafde1..068c9ead98dd 100644
--- a/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
+++ b/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
@@ -55,7 +55,7 @@ static struct rc_map_table gadmei_rm008z[] = {
55 { 0x15, KEY_ENTER}, /* OK */ 55 { 0x15, KEY_ENTER}, /* OK */
56}; 56};
57 57
58static struct rc_keymap gadmei_rm008z_map = { 58static struct rc_map_list gadmei_rm008z_map = {
59 .map = { 59 .map = {
60 .scan = gadmei_rm008z, 60 .scan = gadmei_rm008z,
61 .size = ARRAY_SIZE(gadmei_rm008z), 61 .size = ARRAY_SIZE(gadmei_rm008z),
@@ -66,12 +66,12 @@ static struct rc_keymap gadmei_rm008z_map = {
66 66
67static int __init init_rc_map_gadmei_rm008z(void) 67static int __init init_rc_map_gadmei_rm008z(void)
68{ 68{
69 return ir_register_map(&gadmei_rm008z_map); 69 return rc_map_register(&gadmei_rm008z_map);
70} 70}
71 71
72static void __exit exit_rc_map_gadmei_rm008z(void) 72static void __exit exit_rc_map_gadmei_rm008z(void)
73{ 73{
74 ir_unregister_map(&gadmei_rm008z_map); 74 rc_map_unregister(&gadmei_rm008z_map);
75} 75}
76 76
77module_init(init_rc_map_gadmei_rm008z) 77module_init(init_rc_map_gadmei_rm008z)
diff --git a/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c b/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
index 7e6834acc87f..cdbbed467926 100644
--- a/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
+++ b/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
@@ -58,7 +58,7 @@ static struct rc_map_table genius_tvgo_a11mce[] = {
58 { 0x50, KEY_BLUE }, 58 { 0x50, KEY_BLUE },
59}; 59};
60 60
61static struct rc_keymap genius_tvgo_a11mce_map = { 61static struct rc_map_list genius_tvgo_a11mce_map = {
62 .map = { 62 .map = {
63 .scan = genius_tvgo_a11mce, 63 .scan = genius_tvgo_a11mce,
64 .size = ARRAY_SIZE(genius_tvgo_a11mce), 64 .size = ARRAY_SIZE(genius_tvgo_a11mce),
@@ -69,12 +69,12 @@ static struct rc_keymap genius_tvgo_a11mce_map = {
69 69
70static int __init init_rc_map_genius_tvgo_a11mce(void) 70static int __init init_rc_map_genius_tvgo_a11mce(void)
71{ 71{
72 return ir_register_map(&genius_tvgo_a11mce_map); 72 return rc_map_register(&genius_tvgo_a11mce_map);
73} 73}
74 74
75static void __exit exit_rc_map_genius_tvgo_a11mce(void) 75static void __exit exit_rc_map_genius_tvgo_a11mce(void)
76{ 76{
77 ir_unregister_map(&genius_tvgo_a11mce_map); 77 rc_map_unregister(&genius_tvgo_a11mce_map);
78} 78}
79 79
80module_init(init_rc_map_genius_tvgo_a11mce) 80module_init(init_rc_map_genius_tvgo_a11mce)
diff --git a/drivers/media/rc/keymaps/rc-gotview7135.c b/drivers/media/rc/keymaps/rc-gotview7135.c
index 54222caeff7c..a38bdde8c140 100644
--- a/drivers/media/rc/keymaps/rc-gotview7135.c
+++ b/drivers/media/rc/keymaps/rc-gotview7135.c
@@ -53,7 +53,7 @@ static struct rc_map_table gotview7135[] = {
53 { 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */ 53 { 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */
54}; 54};
55 55
56static struct rc_keymap gotview7135_map = { 56static struct rc_map_list gotview7135_map = {
57 .map = { 57 .map = {
58 .scan = gotview7135, 58 .scan = gotview7135,
59 .size = ARRAY_SIZE(gotview7135), 59 .size = ARRAY_SIZE(gotview7135),
@@ -64,12 +64,12 @@ static struct rc_keymap gotview7135_map = {
64 64
65static int __init init_rc_map_gotview7135(void) 65static int __init init_rc_map_gotview7135(void)
66{ 66{
67 return ir_register_map(&gotview7135_map); 67 return rc_map_register(&gotview7135_map);
68} 68}
69 69
70static void __exit exit_rc_map_gotview7135(void) 70static void __exit exit_rc_map_gotview7135(void)
71{ 71{
72 ir_unregister_map(&gotview7135_map); 72 rc_map_unregister(&gotview7135_map);
73} 73}
74 74
75module_init(init_rc_map_gotview7135) 75module_init(init_rc_map_gotview7135)
diff --git a/drivers/media/rc/keymaps/rc-hauppauge-new.c b/drivers/media/rc/keymaps/rc-hauppauge-new.c
index 239625785f68..bd11da46e56a 100644
--- a/drivers/media/rc/keymaps/rc-hauppauge-new.c
+++ b/drivers/media/rc/keymaps/rc-hauppauge-new.c
@@ -74,7 +74,7 @@ static struct rc_map_table hauppauge_new[] = {
74 { 0x3d, KEY_POWER }, /* system power (green button) */ 74 { 0x3d, KEY_POWER }, /* system power (green button) */
75}; 75};
76 76
77static struct rc_keymap hauppauge_new_map = { 77static struct rc_map_list hauppauge_new_map = {
78 .map = { 78 .map = {
79 .scan = hauppauge_new, 79 .scan = hauppauge_new,
80 .size = ARRAY_SIZE(hauppauge_new), 80 .size = ARRAY_SIZE(hauppauge_new),
@@ -85,12 +85,12 @@ static struct rc_keymap hauppauge_new_map = {
85 85
86static int __init init_rc_map_hauppauge_new(void) 86static int __init init_rc_map_hauppauge_new(void)
87{ 87{
88 return ir_register_map(&hauppauge_new_map); 88 return rc_map_register(&hauppauge_new_map);
89} 89}
90 90
91static void __exit exit_rc_map_hauppauge_new(void) 91static void __exit exit_rc_map_hauppauge_new(void)
92{ 92{
93 ir_unregister_map(&hauppauge_new_map); 93 rc_map_unregister(&hauppauge_new_map);
94} 94}
95 95
96module_init(init_rc_map_hauppauge_new) 96module_init(init_rc_map_hauppauge_new)
diff --git a/drivers/media/rc/keymaps/rc-imon-mce.c b/drivers/media/rc/keymaps/rc-imon-mce.c
index 291e5d8850ec..cb67184e015c 100644
--- a/drivers/media/rc/keymaps/rc-imon-mce.c
+++ b/drivers/media/rc/keymaps/rc-imon-mce.c
@@ -115,7 +115,7 @@ static struct rc_map_table imon_mce[] = {
115 115
116}; 116};
117 117
118static struct rc_keymap imon_mce_map = { 118static struct rc_map_list imon_mce_map = {
119 .map = { 119 .map = {
120 .scan = imon_mce, 120 .scan = imon_mce,
121 .size = ARRAY_SIZE(imon_mce), 121 .size = ARRAY_SIZE(imon_mce),
@@ -127,12 +127,12 @@ static struct rc_keymap imon_mce_map = {
127 127
128static int __init init_rc_map_imon_mce(void) 128static int __init init_rc_map_imon_mce(void)
129{ 129{
130 return ir_register_map(&imon_mce_map); 130 return rc_map_register(&imon_mce_map);
131} 131}
132 132
133static void __exit exit_rc_map_imon_mce(void) 133static void __exit exit_rc_map_imon_mce(void)
134{ 134{
135 ir_unregister_map(&imon_mce_map); 135 rc_map_unregister(&imon_mce_map);
136} 136}
137 137
138module_init(init_rc_map_imon_mce) 138module_init(init_rc_map_imon_mce)
diff --git a/drivers/media/rc/keymaps/rc-imon-pad.c b/drivers/media/rc/keymaps/rc-imon-pad.c
index 33f28d428ef9..eef46b73ca7b 100644
--- a/drivers/media/rc/keymaps/rc-imon-pad.c
+++ b/drivers/media/rc/keymaps/rc-imon-pad.c
@@ -129,7 +129,7 @@ static struct rc_map_table imon_pad[] = {
129 { 0x29b715b7, KEY_DASHBOARD }, /* AppLauncher */ 129 { 0x29b715b7, KEY_DASHBOARD }, /* AppLauncher */
130}; 130};
131 131
132static struct rc_keymap imon_pad_map = { 132static struct rc_map_list imon_pad_map = {
133 .map = { 133 .map = {
134 .scan = imon_pad, 134 .scan = imon_pad,
135 .size = ARRAY_SIZE(imon_pad), 135 .size = ARRAY_SIZE(imon_pad),
@@ -141,12 +141,12 @@ static struct rc_keymap imon_pad_map = {
141 141
142static int __init init_rc_map_imon_pad(void) 142static int __init init_rc_map_imon_pad(void)
143{ 143{
144 return ir_register_map(&imon_pad_map); 144 return rc_map_register(&imon_pad_map);
145} 145}
146 146
147static void __exit exit_rc_map_imon_pad(void) 147static void __exit exit_rc_map_imon_pad(void)
148{ 148{
149 ir_unregister_map(&imon_pad_map); 149 rc_map_unregister(&imon_pad_map);
150} 150}
151 151
152module_init(init_rc_map_imon_pad) 152module_init(init_rc_map_imon_pad)
diff --git a/drivers/media/rc/keymaps/rc-iodata-bctv7e.c b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
index 5e5263f2380d..1f59e163f75d 100644
--- a/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
+++ b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
@@ -62,7 +62,7 @@ static struct rc_map_table iodata_bctv7e[] = {
62 { 0x01, KEY_NEXT }, /* skip >| */ 62 { 0x01, KEY_NEXT }, /* skip >| */
63}; 63};
64 64
65static struct rc_keymap iodata_bctv7e_map = { 65static struct rc_map_list iodata_bctv7e_map = {
66 .map = { 66 .map = {
67 .scan = iodata_bctv7e, 67 .scan = iodata_bctv7e,
68 .size = ARRAY_SIZE(iodata_bctv7e), 68 .size = ARRAY_SIZE(iodata_bctv7e),
@@ -73,12 +73,12 @@ static struct rc_keymap iodata_bctv7e_map = {
73 73
74static int __init init_rc_map_iodata_bctv7e(void) 74static int __init init_rc_map_iodata_bctv7e(void)
75{ 75{
76 return ir_register_map(&iodata_bctv7e_map); 76 return rc_map_register(&iodata_bctv7e_map);
77} 77}
78 78
79static void __exit exit_rc_map_iodata_bctv7e(void) 79static void __exit exit_rc_map_iodata_bctv7e(void)
80{ 80{
81 ir_unregister_map(&iodata_bctv7e_map); 81 rc_map_unregister(&iodata_bctv7e_map);
82} 82}
83 83
84module_init(init_rc_map_iodata_bctv7e) 84module_init(init_rc_map_iodata_bctv7e)
diff --git a/drivers/media/rc/keymaps/rc-kaiomy.c b/drivers/media/rc/keymaps/rc-kaiomy.c
index 527ab1b5fb6f..f31dc5c1ad9c 100644
--- a/drivers/media/rc/keymaps/rc-kaiomy.c
+++ b/drivers/media/rc/keymaps/rc-kaiomy.c
@@ -61,7 +61,7 @@ static struct rc_map_table kaiomy[] = {
61 { 0x1f, KEY_BLUE}, 61 { 0x1f, KEY_BLUE},
62}; 62};
63 63
64static struct rc_keymap kaiomy_map = { 64static struct rc_map_list kaiomy_map = {
65 .map = { 65 .map = {
66 .scan = kaiomy, 66 .scan = kaiomy,
67 .size = ARRAY_SIZE(kaiomy), 67 .size = ARRAY_SIZE(kaiomy),
@@ -72,12 +72,12 @@ static struct rc_keymap kaiomy_map = {
72 72
73static int __init init_rc_map_kaiomy(void) 73static int __init init_rc_map_kaiomy(void)
74{ 74{
75 return ir_register_map(&kaiomy_map); 75 return rc_map_register(&kaiomy_map);
76} 76}
77 77
78static void __exit exit_rc_map_kaiomy(void) 78static void __exit exit_rc_map_kaiomy(void)
79{ 79{
80 ir_unregister_map(&kaiomy_map); 80 rc_map_unregister(&kaiomy_map);
81} 81}
82 82
83module_init(init_rc_map_kaiomy) 83module_init(init_rc_map_kaiomy)
diff --git a/drivers/media/rc/keymaps/rc-kworld-315u.c b/drivers/media/rc/keymaps/rc-kworld-315u.c
index f58703e2a3ac..3ce6ef79fc34 100644
--- a/drivers/media/rc/keymaps/rc-kworld-315u.c
+++ b/drivers/media/rc/keymaps/rc-kworld-315u.c
@@ -57,7 +57,7 @@ static struct rc_map_table kworld_315u[] = {
57 { 0x611f, KEY_BLUE }, 57 { 0x611f, KEY_BLUE },
58}; 58};
59 59
60static struct rc_keymap kworld_315u_map = { 60static struct rc_map_list kworld_315u_map = {
61 .map = { 61 .map = {
62 .scan = kworld_315u, 62 .scan = kworld_315u,
63 .size = ARRAY_SIZE(kworld_315u), 63 .size = ARRAY_SIZE(kworld_315u),
@@ -68,12 +68,12 @@ static struct rc_keymap kworld_315u_map = {
68 68
69static int __init init_rc_map_kworld_315u(void) 69static int __init init_rc_map_kworld_315u(void)
70{ 70{
71 return ir_register_map(&kworld_315u_map); 71 return rc_map_register(&kworld_315u_map);
72} 72}
73 73
74static void __exit exit_rc_map_kworld_315u(void) 74static void __exit exit_rc_map_kworld_315u(void)
75{ 75{
76 ir_unregister_map(&kworld_315u_map); 76 rc_map_unregister(&kworld_315u_map);
77} 77}
78 78
79module_init(init_rc_map_kworld_315u) 79module_init(init_rc_map_kworld_315u)
diff --git a/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c b/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
index f6235bbad507..e45f0b8759d0 100644
--- a/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
+++ b/drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c
@@ -73,7 +73,7 @@ static struct rc_map_table kworld_plus_tv_analog[] = {
73 { 0x23, KEY_GREEN}, /* C */ 73 { 0x23, KEY_GREEN}, /* C */
74}; 74};
75 75
76static struct rc_keymap kworld_plus_tv_analog_map = { 76static struct rc_map_list kworld_plus_tv_analog_map = {
77 .map = { 77 .map = {
78 .scan = kworld_plus_tv_analog, 78 .scan = kworld_plus_tv_analog,
79 .size = ARRAY_SIZE(kworld_plus_tv_analog), 79 .size = ARRAY_SIZE(kworld_plus_tv_analog),
@@ -84,12 +84,12 @@ static struct rc_keymap kworld_plus_tv_analog_map = {
84 84
85static int __init init_rc_map_kworld_plus_tv_analog(void) 85static int __init init_rc_map_kworld_plus_tv_analog(void)
86{ 86{
87 return ir_register_map(&kworld_plus_tv_analog_map); 87 return rc_map_register(&kworld_plus_tv_analog_map);
88} 88}
89 89
90static void __exit exit_rc_map_kworld_plus_tv_analog(void) 90static void __exit exit_rc_map_kworld_plus_tv_analog(void)
91{ 91{
92 ir_unregister_map(&kworld_plus_tv_analog_map); 92 rc_map_unregister(&kworld_plus_tv_analog_map);
93} 93}
94 94
95module_init(init_rc_map_kworld_plus_tv_analog) 95module_init(init_rc_map_kworld_plus_tv_analog)
diff --git a/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c b/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
index e1b8726daa51..8faa54ff16e6 100644
--- a/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
+++ b/drivers/media/rc/keymaps/rc-leadtek-y04g0051.c
@@ -73,7 +73,7 @@ static struct rc_map_table leadtek_y04g0051[] = {
73 { 0x035f, KEY_CHANNELDOWN }, 73 { 0x035f, KEY_CHANNELDOWN },
74}; 74};
75 75
76static struct rc_keymap leadtek_y04g0051_map = { 76static struct rc_map_list leadtek_y04g0051_map = {
77 .map = { 77 .map = {
78 .scan = leadtek_y04g0051, 78 .scan = leadtek_y04g0051,
79 .size = ARRAY_SIZE(leadtek_y04g0051), 79 .size = ARRAY_SIZE(leadtek_y04g0051),
@@ -84,12 +84,12 @@ static struct rc_keymap leadtek_y04g0051_map = {
84 84
85static int __init init_rc_map_leadtek_y04g0051(void) 85static int __init init_rc_map_leadtek_y04g0051(void)
86{ 86{
87 return ir_register_map(&leadtek_y04g0051_map); 87 return rc_map_register(&leadtek_y04g0051_map);
88} 88}
89 89
90static void __exit exit_rc_map_leadtek_y04g0051(void) 90static void __exit exit_rc_map_leadtek_y04g0051(void)
91{ 91{
92 ir_unregister_map(&leadtek_y04g0051_map); 92 rc_map_unregister(&leadtek_y04g0051_map);
93} 93}
94 94
95module_init(init_rc_map_leadtek_y04g0051) 95module_init(init_rc_map_leadtek_y04g0051)
diff --git a/drivers/media/rc/keymaps/rc-lirc.c b/drivers/media/rc/keymaps/rc-lirc.c
index d4dfee72b8ca..e8e23e233c39 100644
--- a/drivers/media/rc/keymaps/rc-lirc.c
+++ b/drivers/media/rc/keymaps/rc-lirc.c
@@ -15,7 +15,7 @@ static struct rc_map_table lirc[] = {
15 { }, 15 { },
16}; 16};
17 17
18static struct rc_keymap lirc_map = { 18static struct rc_map_list lirc_map = {
19 .map = { 19 .map = {
20 .scan = lirc, 20 .scan = lirc,
21 .size = ARRAY_SIZE(lirc), 21 .size = ARRAY_SIZE(lirc),
@@ -26,12 +26,12 @@ static struct rc_keymap lirc_map = {
26 26
27static int __init init_rc_map_lirc(void) 27static int __init init_rc_map_lirc(void)
28{ 28{
29 return ir_register_map(&lirc_map); 29 return rc_map_register(&lirc_map);
30} 30}
31 31
32static void __exit exit_rc_map_lirc(void) 32static void __exit exit_rc_map_lirc(void)
33{ 33{
34 ir_unregister_map(&lirc_map); 34 rc_map_unregister(&lirc_map);
35} 35}
36 36
37module_init(init_rc_map_lirc) 37module_init(init_rc_map_lirc)
diff --git a/drivers/media/rc/keymaps/rc-lme2510.c b/drivers/media/rc/keymaps/rc-lme2510.c
index eb2d39698ef0..875cd81477c7 100644
--- a/drivers/media/rc/keymaps/rc-lme2510.c
+++ b/drivers/media/rc/keymaps/rc-lme2510.c
@@ -42,7 +42,7 @@ static struct rc_map_table lme2510_rc[] = {
42 42
43}; 43};
44 44
45static struct rc_keymap lme2510_map = { 45static struct rc_map_list lme2510_map = {
46 .map = { 46 .map = {
47 .scan = lme2510_rc, 47 .scan = lme2510_rc,
48 .size = ARRAY_SIZE(lme2510_rc), 48 .size = ARRAY_SIZE(lme2510_rc),
@@ -53,12 +53,12 @@ static struct rc_keymap lme2510_map = {
53 53
54static int __init init_rc_lme2510_map(void) 54static int __init init_rc_lme2510_map(void)
55{ 55{
56 return ir_register_map(&lme2510_map); 56 return rc_map_register(&lme2510_map);
57} 57}
58 58
59static void __exit exit_rc_lme2510_map(void) 59static void __exit exit_rc_lme2510_map(void)
60{ 60{
61 ir_unregister_map(&lme2510_map); 61 rc_map_unregister(&lme2510_map);
62} 62}
63 63
64module_init(init_rc_lme2510_map) 64module_init(init_rc_lme2510_map)
diff --git a/drivers/media/rc/keymaps/rc-manli.c b/drivers/media/rc/keymaps/rc-manli.c
index b24b0821da5a..23b2d04e7a9f 100644
--- a/drivers/media/rc/keymaps/rc-manli.c
+++ b/drivers/media/rc/keymaps/rc-manli.c
@@ -108,7 +108,7 @@ static struct rc_map_table manli[] = {
108 /* 0x1d unused ? */ 108 /* 0x1d unused ? */
109}; 109};
110 110
111static struct rc_keymap manli_map = { 111static struct rc_map_list manli_map = {
112 .map = { 112 .map = {
113 .scan = manli, 113 .scan = manli,
114 .size = ARRAY_SIZE(manli), 114 .size = ARRAY_SIZE(manli),
@@ -119,12 +119,12 @@ static struct rc_keymap manli_map = {
119 119
120static int __init init_rc_map_manli(void) 120static int __init init_rc_map_manli(void)
121{ 121{
122 return ir_register_map(&manli_map); 122 return rc_map_register(&manli_map);
123} 123}
124 124
125static void __exit exit_rc_map_manli(void) 125static void __exit exit_rc_map_manli(void)
126{ 126{
127 ir_unregister_map(&manli_map); 127 rc_map_unregister(&manli_map);
128} 128}
129 129
130module_init(init_rc_map_manli) 130module_init(init_rc_map_manli)
diff --git a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
index 4ad89b79a3e8..7b9a01b6e4cf 100644
--- a/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
+++ b/drivers/media/rc/keymaps/rc-msi-digivox-ii.c
@@ -41,7 +41,7 @@ static struct rc_map_table msi_digivox_ii[] = {
41 { 0x001f, KEY_VOLUMEDOWN }, 41 { 0x001f, KEY_VOLUMEDOWN },
42}; 42};
43 43
44static struct rc_keymap msi_digivox_ii_map = { 44static struct rc_map_list msi_digivox_ii_map = {
45 .map = { 45 .map = {
46 .scan = msi_digivox_ii, 46 .scan = msi_digivox_ii,
47 .size = ARRAY_SIZE(msi_digivox_ii), 47 .size = ARRAY_SIZE(msi_digivox_ii),
@@ -52,12 +52,12 @@ static struct rc_keymap msi_digivox_ii_map = {
52 52
53static int __init init_rc_map_msi_digivox_ii(void) 53static int __init init_rc_map_msi_digivox_ii(void)
54{ 54{
55 return ir_register_map(&msi_digivox_ii_map); 55 return rc_map_register(&msi_digivox_ii_map);
56} 56}
57 57
58static void __exit exit_rc_map_msi_digivox_ii(void) 58static void __exit exit_rc_map_msi_digivox_ii(void)
59{ 59{
60 ir_unregister_map(&msi_digivox_ii_map); 60 rc_map_unregister(&msi_digivox_ii_map);
61} 61}
62 62
63module_init(init_rc_map_msi_digivox_ii) 63module_init(init_rc_map_msi_digivox_ii)
diff --git a/drivers/media/rc/keymaps/rc-msi-digivox-iii.c b/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
index d3304e798356..ae9d06b39157 100644
--- a/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
+++ b/drivers/media/rc/keymaps/rc-msi-digivox-iii.c
@@ -59,7 +59,7 @@ static struct rc_map_table msi_digivox_iii[] = {
59 { 0x61d643, KEY_POWER2 }, /* [red power button] */ 59 { 0x61d643, KEY_POWER2 }, /* [red power button] */
60}; 60};
61 61
62static struct rc_keymap msi_digivox_iii_map = { 62static struct rc_map_list msi_digivox_iii_map = {
63 .map = { 63 .map = {
64 .scan = msi_digivox_iii, 64 .scan = msi_digivox_iii,
65 .size = ARRAY_SIZE(msi_digivox_iii), 65 .size = ARRAY_SIZE(msi_digivox_iii),
@@ -70,12 +70,12 @@ static struct rc_keymap msi_digivox_iii_map = {
70 70
71static int __init init_rc_map_msi_digivox_iii(void) 71static int __init init_rc_map_msi_digivox_iii(void)
72{ 72{
73 return ir_register_map(&msi_digivox_iii_map); 73 return rc_map_register(&msi_digivox_iii_map);
74} 74}
75 75
76static void __exit exit_rc_map_msi_digivox_iii(void) 76static void __exit exit_rc_map_msi_digivox_iii(void)
77{ 77{
78 ir_unregister_map(&msi_digivox_iii_map); 78 rc_map_unregister(&msi_digivox_iii_map);
79} 79}
80 80
81module_init(init_rc_map_msi_digivox_iii) 81module_init(init_rc_map_msi_digivox_iii)
diff --git a/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c b/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
index 51999c469884..fa8fd0ab94c7 100644
--- a/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
+++ b/drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.c
@@ -97,7 +97,7 @@ static struct rc_map_table msi_tvanywhere_plus[] = {
97 { 0x1d, KEY_RESTART }, /* Reset */ 97 { 0x1d, KEY_RESTART }, /* Reset */
98}; 98};
99 99
100static struct rc_keymap msi_tvanywhere_plus_map = { 100static struct rc_map_list msi_tvanywhere_plus_map = {
101 .map = { 101 .map = {
102 .scan = msi_tvanywhere_plus, 102 .scan = msi_tvanywhere_plus,
103 .size = ARRAY_SIZE(msi_tvanywhere_plus), 103 .size = ARRAY_SIZE(msi_tvanywhere_plus),
@@ -108,12 +108,12 @@ static struct rc_keymap msi_tvanywhere_plus_map = {
108 108
109static int __init init_rc_map_msi_tvanywhere_plus(void) 109static int __init init_rc_map_msi_tvanywhere_plus(void)
110{ 110{
111 return ir_register_map(&msi_tvanywhere_plus_map); 111 return rc_map_register(&msi_tvanywhere_plus_map);
112} 112}
113 113
114static void __exit exit_rc_map_msi_tvanywhere_plus(void) 114static void __exit exit_rc_map_msi_tvanywhere_plus(void)
115{ 115{
116 ir_unregister_map(&msi_tvanywhere_plus_map); 116 rc_map_unregister(&msi_tvanywhere_plus_map);
117} 117}
118 118
119module_init(init_rc_map_msi_tvanywhere_plus) 119module_init(init_rc_map_msi_tvanywhere_plus)
diff --git a/drivers/media/rc/keymaps/rc-msi-tvanywhere.c b/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
index 619df9dcbf12..18b37facb0dd 100644
--- a/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
+++ b/drivers/media/rc/keymaps/rc-msi-tvanywhere.c
@@ -43,7 +43,7 @@ static struct rc_map_table msi_tvanywhere[] = {
43 { 0x1f, KEY_VOLUMEDOWN }, 43 { 0x1f, KEY_VOLUMEDOWN },
44}; 44};
45 45
46static struct rc_keymap msi_tvanywhere_map = { 46static struct rc_map_list msi_tvanywhere_map = {
47 .map = { 47 .map = {
48 .scan = msi_tvanywhere, 48 .scan = msi_tvanywhere,
49 .size = ARRAY_SIZE(msi_tvanywhere), 49 .size = ARRAY_SIZE(msi_tvanywhere),
@@ -54,12 +54,12 @@ static struct rc_keymap msi_tvanywhere_map = {
54 54
55static int __init init_rc_map_msi_tvanywhere(void) 55static int __init init_rc_map_msi_tvanywhere(void)
56{ 56{
57 return ir_register_map(&msi_tvanywhere_map); 57 return rc_map_register(&msi_tvanywhere_map);
58} 58}
59 59
60static void __exit exit_rc_map_msi_tvanywhere(void) 60static void __exit exit_rc_map_msi_tvanywhere(void)
61{ 61{
62 ir_unregister_map(&msi_tvanywhere_map); 62 rc_map_unregister(&msi_tvanywhere_map);
63} 63}
64 64
65module_init(init_rc_map_msi_tvanywhere) 65module_init(init_rc_map_msi_tvanywhere)
diff --git a/drivers/media/rc/keymaps/rc-nebula.c b/drivers/media/rc/keymaps/rc-nebula.c
index 8672859aaad1..3e6f077eb700 100644
--- a/drivers/media/rc/keymaps/rc-nebula.c
+++ b/drivers/media/rc/keymaps/rc-nebula.c
@@ -70,7 +70,7 @@ static struct rc_map_table nebula[] = {
70 { 0x36, KEY_PC }, 70 { 0x36, KEY_PC },
71}; 71};
72 72
73static struct rc_keymap nebula_map = { 73static struct rc_map_list nebula_map = {
74 .map = { 74 .map = {
75 .scan = nebula, 75 .scan = nebula,
76 .size = ARRAY_SIZE(nebula), 76 .size = ARRAY_SIZE(nebula),
@@ -81,12 +81,12 @@ static struct rc_keymap nebula_map = {
81 81
82static int __init init_rc_map_nebula(void) 82static int __init init_rc_map_nebula(void)
83{ 83{
84 return ir_register_map(&nebula_map); 84 return rc_map_register(&nebula_map);
85} 85}
86 86
87static void __exit exit_rc_map_nebula(void) 87static void __exit exit_rc_map_nebula(void)
88{ 88{
89 ir_unregister_map(&nebula_map); 89 rc_map_unregister(&nebula_map);
90} 90}
91 91
92module_init(init_rc_map_nebula) 92module_init(init_rc_map_nebula)
diff --git a/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c b/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
index 2f560dc791c0..26f114c5c0de 100644
--- a/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
+++ b/drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c
@@ -79,7 +79,7 @@ static struct rc_map_table nec_terratec_cinergy_xs[] = {
79 { 0x145c, KEY_NEXT}, 79 { 0x145c, KEY_NEXT},
80}; 80};
81 81
82static struct rc_keymap nec_terratec_cinergy_xs_map = { 82static struct rc_map_list nec_terratec_cinergy_xs_map = {
83 .map = { 83 .map = {
84 .scan = nec_terratec_cinergy_xs, 84 .scan = nec_terratec_cinergy_xs,
85 .size = ARRAY_SIZE(nec_terratec_cinergy_xs), 85 .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
@@ -90,12 +90,12 @@ static struct rc_keymap nec_terratec_cinergy_xs_map = {
90 90
91static int __init init_rc_map_nec_terratec_cinergy_xs(void) 91static int __init init_rc_map_nec_terratec_cinergy_xs(void)
92{ 92{
93 return ir_register_map(&nec_terratec_cinergy_xs_map); 93 return rc_map_register(&nec_terratec_cinergy_xs_map);
94} 94}
95 95
96static void __exit exit_rc_map_nec_terratec_cinergy_xs(void) 96static void __exit exit_rc_map_nec_terratec_cinergy_xs(void)
97{ 97{
98 ir_unregister_map(&nec_terratec_cinergy_xs_map); 98 rc_map_unregister(&nec_terratec_cinergy_xs_map);
99} 99}
100 100
101module_init(init_rc_map_nec_terratec_cinergy_xs) 101module_init(init_rc_map_nec_terratec_cinergy_xs)
diff --git a/drivers/media/rc/keymaps/rc-norwood.c b/drivers/media/rc/keymaps/rc-norwood.c
index f4a85033b297..629ee9d84537 100644
--- a/drivers/media/rc/keymaps/rc-norwood.c
+++ b/drivers/media/rc/keymaps/rc-norwood.c
@@ -59,7 +59,7 @@ static struct rc_map_table norwood[] = {
59 { 0x65, KEY_POWER }, /* Computer power */ 59 { 0x65, KEY_POWER }, /* Computer power */
60}; 60};
61 61
62static struct rc_keymap norwood_map = { 62static struct rc_map_list norwood_map = {
63 .map = { 63 .map = {
64 .scan = norwood, 64 .scan = norwood,
65 .size = ARRAY_SIZE(norwood), 65 .size = ARRAY_SIZE(norwood),
@@ -70,12 +70,12 @@ static struct rc_keymap norwood_map = {
70 70
71static int __init init_rc_map_norwood(void) 71static int __init init_rc_map_norwood(void)
72{ 72{
73 return ir_register_map(&norwood_map); 73 return rc_map_register(&norwood_map);
74} 74}
75 75
76static void __exit exit_rc_map_norwood(void) 76static void __exit exit_rc_map_norwood(void)
77{ 77{
78 ir_unregister_map(&norwood_map); 78 rc_map_unregister(&norwood_map);
79} 79}
80 80
81module_init(init_rc_map_norwood) 81module_init(init_rc_map_norwood)
diff --git a/drivers/media/rc/keymaps/rc-npgtech.c b/drivers/media/rc/keymaps/rc-npgtech.c
index fdfa549323cc..4aa588bf6d69 100644
--- a/drivers/media/rc/keymaps/rc-npgtech.c
+++ b/drivers/media/rc/keymaps/rc-npgtech.c
@@ -54,7 +54,7 @@ static struct rc_map_table npgtech[] = {
54 54
55}; 55};
56 56
57static struct rc_keymap npgtech_map = { 57static struct rc_map_list npgtech_map = {
58 .map = { 58 .map = {
59 .scan = npgtech, 59 .scan = npgtech,
60 .size = ARRAY_SIZE(npgtech), 60 .size = ARRAY_SIZE(npgtech),
@@ -65,12 +65,12 @@ static struct rc_keymap npgtech_map = {
65 65
66static int __init init_rc_map_npgtech(void) 66static int __init init_rc_map_npgtech(void)
67{ 67{
68 return ir_register_map(&npgtech_map); 68 return rc_map_register(&npgtech_map);
69} 69}
70 70
71static void __exit exit_rc_map_npgtech(void) 71static void __exit exit_rc_map_npgtech(void)
72{ 72{
73 ir_unregister_map(&npgtech_map); 73 rc_map_unregister(&npgtech_map);
74} 74}
75 75
76module_init(init_rc_map_npgtech) 76module_init(init_rc_map_npgtech)
diff --git a/drivers/media/rc/keymaps/rc-pctv-sedna.c b/drivers/media/rc/keymaps/rc-pctv-sedna.c
index 86c1101c47df..fa5ae5981eb8 100644
--- a/drivers/media/rc/keymaps/rc-pctv-sedna.c
+++ b/drivers/media/rc/keymaps/rc-pctv-sedna.c
@@ -54,7 +54,7 @@ static struct rc_map_table pctv_sedna[] = {
54 { 0x1f, KEY_PLAY }, /* Play */ 54 { 0x1f, KEY_PLAY }, /* Play */
55}; 55};
56 56
57static struct rc_keymap pctv_sedna_map = { 57static struct rc_map_list pctv_sedna_map = {
58 .map = { 58 .map = {
59 .scan = pctv_sedna, 59 .scan = pctv_sedna,
60 .size = ARRAY_SIZE(pctv_sedna), 60 .size = ARRAY_SIZE(pctv_sedna),
@@ -65,12 +65,12 @@ static struct rc_keymap pctv_sedna_map = {
65 65
66static int __init init_rc_map_pctv_sedna(void) 66static int __init init_rc_map_pctv_sedna(void)
67{ 67{
68 return ir_register_map(&pctv_sedna_map); 68 return rc_map_register(&pctv_sedna_map);
69} 69}
70 70
71static void __exit exit_rc_map_pctv_sedna(void) 71static void __exit exit_rc_map_pctv_sedna(void)
72{ 72{
73 ir_unregister_map(&pctv_sedna_map); 73 rc_map_unregister(&pctv_sedna_map);
74} 74}
75 75
76module_init(init_rc_map_pctv_sedna) 76module_init(init_rc_map_pctv_sedna)
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-color.c b/drivers/media/rc/keymaps/rc-pinnacle-color.c
index d3f4cd411e3b..23b8c505c6aa 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-color.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-color.c
@@ -68,7 +68,7 @@ static struct rc_map_table pinnacle_color[] = {
68 { 0x0a, KEY_BACKSPACE }, 68 { 0x0a, KEY_BACKSPACE },
69}; 69};
70 70
71static struct rc_keymap pinnacle_color_map = { 71static struct rc_map_list pinnacle_color_map = {
72 .map = { 72 .map = {
73 .scan = pinnacle_color, 73 .scan = pinnacle_color,
74 .size = ARRAY_SIZE(pinnacle_color), 74 .size = ARRAY_SIZE(pinnacle_color),
@@ -79,12 +79,12 @@ static struct rc_keymap pinnacle_color_map = {
79 79
80static int __init init_rc_map_pinnacle_color(void) 80static int __init init_rc_map_pinnacle_color(void)
81{ 81{
82 return ir_register_map(&pinnacle_color_map); 82 return rc_map_register(&pinnacle_color_map);
83} 83}
84 84
85static void __exit exit_rc_map_pinnacle_color(void) 85static void __exit exit_rc_map_pinnacle_color(void)
86{ 86{
87 ir_unregister_map(&pinnacle_color_map); 87 rc_map_unregister(&pinnacle_color_map);
88} 88}
89 89
90module_init(init_rc_map_pinnacle_color) 90module_init(init_rc_map_pinnacle_color)
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-grey.c b/drivers/media/rc/keymaps/rc-pinnacle-grey.c
index 1f48b43e4939..6ba8c368d10a 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-grey.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-grey.c
@@ -63,7 +63,7 @@ static struct rc_map_table pinnacle_grey[] = {
63 { 0x18, KEY_EPG }, 63 { 0x18, KEY_EPG },
64}; 64};
65 65
66static struct rc_keymap pinnacle_grey_map = { 66static struct rc_map_list pinnacle_grey_map = {
67 .map = { 67 .map = {
68 .scan = pinnacle_grey, 68 .scan = pinnacle_grey,
69 .size = ARRAY_SIZE(pinnacle_grey), 69 .size = ARRAY_SIZE(pinnacle_grey),
@@ -74,12 +74,12 @@ static struct rc_keymap pinnacle_grey_map = {
74 74
75static int __init init_rc_map_pinnacle_grey(void) 75static int __init init_rc_map_pinnacle_grey(void)
76{ 76{
77 return ir_register_map(&pinnacle_grey_map); 77 return rc_map_register(&pinnacle_grey_map);
78} 78}
79 79
80static void __exit exit_rc_map_pinnacle_grey(void) 80static void __exit exit_rc_map_pinnacle_grey(void)
81{ 81{
82 ir_unregister_map(&pinnacle_grey_map); 82 rc_map_unregister(&pinnacle_grey_map);
83} 83}
84 84
85module_init(init_rc_map_pinnacle_grey) 85module_init(init_rc_map_pinnacle_grey)
diff --git a/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c b/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
index dc7267c2d04a..bb10ffe086b4 100644
--- a/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
+++ b/drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.c
@@ -47,7 +47,7 @@ static struct rc_map_table pinnacle_pctv_hd[] = {
47 { 0x3f, KEY_EPG }, /* Labeled "?" */ 47 { 0x3f, KEY_EPG }, /* Labeled "?" */
48}; 48};
49 49
50static struct rc_keymap pinnacle_pctv_hd_map = { 50static struct rc_map_list pinnacle_pctv_hd_map = {
51 .map = { 51 .map = {
52 .scan = pinnacle_pctv_hd, 52 .scan = pinnacle_pctv_hd,
53 .size = ARRAY_SIZE(pinnacle_pctv_hd), 53 .size = ARRAY_SIZE(pinnacle_pctv_hd),
@@ -58,12 +58,12 @@ static struct rc_keymap pinnacle_pctv_hd_map = {
58 58
59static int __init init_rc_map_pinnacle_pctv_hd(void) 59static int __init init_rc_map_pinnacle_pctv_hd(void)
60{ 60{
61 return ir_register_map(&pinnacle_pctv_hd_map); 61 return rc_map_register(&pinnacle_pctv_hd_map);
62} 62}
63 63
64static void __exit exit_rc_map_pinnacle_pctv_hd(void) 64static void __exit exit_rc_map_pinnacle_pctv_hd(void)
65{ 65{
66 ir_unregister_map(&pinnacle_pctv_hd_map); 66 rc_map_unregister(&pinnacle_pctv_hd_map);
67} 67}
68 68
69module_init(init_rc_map_pinnacle_pctv_hd) 69module_init(init_rc_map_pinnacle_pctv_hd)
diff --git a/drivers/media/rc/keymaps/rc-pixelview-mk12.c b/drivers/media/rc/keymaps/rc-pixelview-mk12.c
index 93f72487a7bb..8d9f664e0a2d 100644
--- a/drivers/media/rc/keymaps/rc-pixelview-mk12.c
+++ b/drivers/media/rc/keymaps/rc-pixelview-mk12.c
@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_mk12[] = {
57 { 0x866b07, KEY_RADIO }, /* FM */ 57 { 0x866b07, KEY_RADIO }, /* FM */
58}; 58};
59 59
60static struct rc_keymap pixelview_map = { 60static struct rc_map_list pixelview_map = {
61 .map = { 61 .map = {
62 .scan = pixelview_mk12, 62 .scan = pixelview_mk12,
63 .size = ARRAY_SIZE(pixelview_mk12), 63 .size = ARRAY_SIZE(pixelview_mk12),
@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_map = {
68 68
69static int __init init_rc_map_pixelview(void) 69static int __init init_rc_map_pixelview(void)
70{ 70{
71 return ir_register_map(&pixelview_map); 71 return rc_map_register(&pixelview_map);
72} 72}
73 73
74static void __exit exit_rc_map_pixelview(void) 74static void __exit exit_rc_map_pixelview(void)
75{ 75{
76 ir_unregister_map(&pixelview_map); 76 rc_map_unregister(&pixelview_map);
77} 77}
78 78
79module_init(init_rc_map_pixelview) 79module_init(init_rc_map_pixelview)
diff --git a/drivers/media/rc/keymaps/rc-pixelview-new.c b/drivers/media/rc/keymaps/rc-pixelview-new.c
index e6d60d2cf271..777a70076be2 100644
--- a/drivers/media/rc/keymaps/rc-pixelview-new.c
+++ b/drivers/media/rc/keymaps/rc-pixelview-new.c
@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_new[] = {
57 { 0x34, KEY_RADIO }, 57 { 0x34, KEY_RADIO },
58}; 58};
59 59
60static struct rc_keymap pixelview_new_map = { 60static struct rc_map_list pixelview_new_map = {
61 .map = { 61 .map = {
62 .scan = pixelview_new, 62 .scan = pixelview_new,
63 .size = ARRAY_SIZE(pixelview_new), 63 .size = ARRAY_SIZE(pixelview_new),
@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_new_map = {
68 68
69static int __init init_rc_map_pixelview_new(void) 69static int __init init_rc_map_pixelview_new(void)
70{ 70{
71 return ir_register_map(&pixelview_new_map); 71 return rc_map_register(&pixelview_new_map);
72} 72}
73 73
74static void __exit exit_rc_map_pixelview_new(void) 74static void __exit exit_rc_map_pixelview_new(void)
75{ 75{
76 ir_unregister_map(&pixelview_new_map); 76 rc_map_unregister(&pixelview_new_map);
77} 77}
78 78
79module_init(init_rc_map_pixelview_new) 79module_init(init_rc_map_pixelview_new)
diff --git a/drivers/media/rc/keymaps/rc-pixelview.c b/drivers/media/rc/keymaps/rc-pixelview.c
index 2a767102a164..0ec5988916b9 100644
--- a/drivers/media/rc/keymaps/rc-pixelview.c
+++ b/drivers/media/rc/keymaps/rc-pixelview.c
@@ -56,7 +56,7 @@ static struct rc_map_table pixelview[] = {
56 { 0x18, KEY_MUTE }, /* mute/unmute */ 56 { 0x18, KEY_MUTE }, /* mute/unmute */
57}; 57};
58 58
59static struct rc_keymap pixelview_map = { 59static struct rc_map_list pixelview_map = {
60 .map = { 60 .map = {
61 .scan = pixelview, 61 .scan = pixelview,
62 .size = ARRAY_SIZE(pixelview), 62 .size = ARRAY_SIZE(pixelview),
@@ -67,12 +67,12 @@ static struct rc_keymap pixelview_map = {
67 67
68static int __init init_rc_map_pixelview(void) 68static int __init init_rc_map_pixelview(void)
69{ 69{
70 return ir_register_map(&pixelview_map); 70 return rc_map_register(&pixelview_map);
71} 71}
72 72
73static void __exit exit_rc_map_pixelview(void) 73static void __exit exit_rc_map_pixelview(void)
74{ 74{
75 ir_unregister_map(&pixelview_map); 75 rc_map_unregister(&pixelview_map);
76} 76}
77 77
78module_init(init_rc_map_pixelview) 78module_init(init_rc_map_pixelview)
diff --git a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
index 7cc0d57df3be..5f9d546a86c4 100644
--- a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
+++ b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
@@ -55,7 +55,7 @@ static struct rc_map_table powercolor_real_angel[] = {
55 { 0x25, KEY_POWER }, /* power */ 55 { 0x25, KEY_POWER }, /* power */
56}; 56};
57 57
58static struct rc_keymap powercolor_real_angel_map = { 58static struct rc_map_list powercolor_real_angel_map = {
59 .map = { 59 .map = {
60 .scan = powercolor_real_angel, 60 .scan = powercolor_real_angel,
61 .size = ARRAY_SIZE(powercolor_real_angel), 61 .size = ARRAY_SIZE(powercolor_real_angel),
@@ -66,12 +66,12 @@ static struct rc_keymap powercolor_real_angel_map = {
66 66
67static int __init init_rc_map_powercolor_real_angel(void) 67static int __init init_rc_map_powercolor_real_angel(void)
68{ 68{
69 return ir_register_map(&powercolor_real_angel_map); 69 return rc_map_register(&powercolor_real_angel_map);
70} 70}
71 71
72static void __exit exit_rc_map_powercolor_real_angel(void) 72static void __exit exit_rc_map_powercolor_real_angel(void)
73{ 73{
74 ir_unregister_map(&powercolor_real_angel_map); 74 rc_map_unregister(&powercolor_real_angel_map);
75} 75}
76 76
77module_init(init_rc_map_powercolor_real_angel) 77module_init(init_rc_map_powercolor_real_angel)
diff --git a/drivers/media/rc/keymaps/rc-proteus-2309.c b/drivers/media/rc/keymaps/rc-proteus-2309.c
index d5e62a50c1df..8a3a643879d4 100644
--- a/drivers/media/rc/keymaps/rc-proteus-2309.c
+++ b/drivers/media/rc/keymaps/rc-proteus-2309.c
@@ -43,7 +43,7 @@ static struct rc_map_table proteus_2309[] = {
43 { 0x14, KEY_F1 }, 43 { 0x14, KEY_F1 },
44}; 44};
45 45
46static struct rc_keymap proteus_2309_map = { 46static struct rc_map_list proteus_2309_map = {
47 .map = { 47 .map = {
48 .scan = proteus_2309, 48 .scan = proteus_2309,
49 .size = ARRAY_SIZE(proteus_2309), 49 .size = ARRAY_SIZE(proteus_2309),
@@ -54,12 +54,12 @@ static struct rc_keymap proteus_2309_map = {
54 54
55static int __init init_rc_map_proteus_2309(void) 55static int __init init_rc_map_proteus_2309(void)
56{ 56{
57 return ir_register_map(&proteus_2309_map); 57 return rc_map_register(&proteus_2309_map);
58} 58}
59 59
60static void __exit exit_rc_map_proteus_2309(void) 60static void __exit exit_rc_map_proteus_2309(void)
61{ 61{
62 ir_unregister_map(&proteus_2309_map); 62 rc_map_unregister(&proteus_2309_map);
63} 63}
64 64
65module_init(init_rc_map_proteus_2309) 65module_init(init_rc_map_proteus_2309)
diff --git a/drivers/media/rc/keymaps/rc-purpletv.c b/drivers/media/rc/keymaps/rc-purpletv.c
index 5dbfd913b211..ef90296bfd68 100644
--- a/drivers/media/rc/keymaps/rc-purpletv.c
+++ b/drivers/media/rc/keymaps/rc-purpletv.c
@@ -55,7 +55,7 @@ static struct rc_map_table purpletv[] = {
55 55
56}; 56};
57 57
58static struct rc_keymap purpletv_map = { 58static struct rc_map_list purpletv_map = {
59 .map = { 59 .map = {
60 .scan = purpletv, 60 .scan = purpletv,
61 .size = ARRAY_SIZE(purpletv), 61 .size = ARRAY_SIZE(purpletv),
@@ -66,12 +66,12 @@ static struct rc_keymap purpletv_map = {
66 66
67static int __init init_rc_map_purpletv(void) 67static int __init init_rc_map_purpletv(void)
68{ 68{
69 return ir_register_map(&purpletv_map); 69 return rc_map_register(&purpletv_map);
70} 70}
71 71
72static void __exit exit_rc_map_purpletv(void) 72static void __exit exit_rc_map_purpletv(void)
73{ 73{
74 ir_unregister_map(&purpletv_map); 74 rc_map_unregister(&purpletv_map);
75} 75}
76 76
77module_init(init_rc_map_purpletv) 77module_init(init_rc_map_purpletv)
diff --git a/drivers/media/rc/keymaps/rc-pv951.c b/drivers/media/rc/keymaps/rc-pv951.c
index d9c7e2f26add..83a418de12c6 100644
--- a/drivers/media/rc/keymaps/rc-pv951.c
+++ b/drivers/media/rc/keymaps/rc-pv951.c
@@ -52,7 +52,7 @@ static struct rc_map_table pv951[] = {
52 { 0x1c, KEY_MEDIA }, /* PC/TV */ 52 { 0x1c, KEY_MEDIA }, /* PC/TV */
53}; 53};
54 54
55static struct rc_keymap pv951_map = { 55static struct rc_map_list pv951_map = {
56 .map = { 56 .map = {
57 .scan = pv951, 57 .scan = pv951,
58 .size = ARRAY_SIZE(pv951), 58 .size = ARRAY_SIZE(pv951),
@@ -63,12 +63,12 @@ static struct rc_keymap pv951_map = {
63 63
64static int __init init_rc_map_pv951(void) 64static int __init init_rc_map_pv951(void)
65{ 65{
66 return ir_register_map(&pv951_map); 66 return rc_map_register(&pv951_map);
67} 67}
68 68
69static void __exit exit_rc_map_pv951(void) 69static void __exit exit_rc_map_pv951(void)
70{ 70{
71 ir_unregister_map(&pv951_map); 71 rc_map_unregister(&pv951_map);
72} 72}
73 73
74module_init(init_rc_map_pv951) 74module_init(init_rc_map_pv951)
diff --git a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
index eef2e8714542..df534b08959e 100644
--- a/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
+++ b/drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
@@ -77,7 +77,7 @@ static struct rc_map_table rc5_hauppauge_new[] = {
77 { 0x1e3d, KEY_POWER }, /* system power (green button) */ 77 { 0x1e3d, KEY_POWER }, /* system power (green button) */
78}; 78};
79 79
80static struct rc_keymap rc5_hauppauge_new_map = { 80static struct rc_map_list rc5_hauppauge_new_map = {
81 .map = { 81 .map = {
82 .scan = rc5_hauppauge_new, 82 .scan = rc5_hauppauge_new,
83 .size = ARRAY_SIZE(rc5_hauppauge_new), 83 .size = ARRAY_SIZE(rc5_hauppauge_new),
@@ -88,12 +88,12 @@ static struct rc_keymap rc5_hauppauge_new_map = {
88 88
89static int __init init_rc_map_rc5_hauppauge_new(void) 89static int __init init_rc_map_rc5_hauppauge_new(void)
90{ 90{
91 return ir_register_map(&rc5_hauppauge_new_map); 91 return rc_map_register(&rc5_hauppauge_new_map);
92} 92}
93 93
94static void __exit exit_rc_map_rc5_hauppauge_new(void) 94static void __exit exit_rc_map_rc5_hauppauge_new(void)
95{ 95{
96 ir_unregister_map(&rc5_hauppauge_new_map); 96 rc_map_unregister(&rc5_hauppauge_new_map);
97} 97}
98 98
99module_init(init_rc_map_rc5_hauppauge_new) 99module_init(init_rc_map_rc5_hauppauge_new)
diff --git a/drivers/media/rc/keymaps/rc-rc5-tv.c b/drivers/media/rc/keymaps/rc-rc5-tv.c
index efa14882e762..4fcef9f1f721 100644
--- a/drivers/media/rc/keymaps/rc-rc5-tv.c
+++ b/drivers/media/rc/keymaps/rc-rc5-tv.c
@@ -55,7 +55,7 @@ static struct rc_map_table rc5_tv[] = {
55 55
56}; 56};
57 57
58static struct rc_keymap rc5_tv_map = { 58static struct rc_map_list rc5_tv_map = {
59 .map = { 59 .map = {
60 .scan = rc5_tv, 60 .scan = rc5_tv,
61 .size = ARRAY_SIZE(rc5_tv), 61 .size = ARRAY_SIZE(rc5_tv),
@@ -66,12 +66,12 @@ static struct rc_keymap rc5_tv_map = {
66 66
67static int __init init_rc_map_rc5_tv(void) 67static int __init init_rc_map_rc5_tv(void)
68{ 68{
69 return ir_register_map(&rc5_tv_map); 69 return rc_map_register(&rc5_tv_map);
70} 70}
71 71
72static void __exit exit_rc_map_rc5_tv(void) 72static void __exit exit_rc_map_rc5_tv(void)
73{ 73{
74 ir_unregister_map(&rc5_tv_map); 74 rc_map_unregister(&rc5_tv_map);
75} 75}
76 76
77module_init(init_rc_map_rc5_tv) 77module_init(init_rc_map_rc5_tv)
diff --git a/drivers/media/rc/keymaps/rc-rc6-mce.c b/drivers/media/rc/keymaps/rc-rc6-mce.c
index 81f41723fde3..3bf3337875d1 100644
--- a/drivers/media/rc/keymaps/rc-rc6-mce.c
+++ b/drivers/media/rc/keymaps/rc-rc6-mce.c
@@ -87,7 +87,7 @@ static struct rc_map_table rc6_mce[] = {
87 { 0x800f0481, KEY_PLAYPAUSE }, 87 { 0x800f0481, KEY_PLAYPAUSE },
88}; 88};
89 89
90static struct rc_keymap rc6_mce_map = { 90static struct rc_map_list rc6_mce_map = {
91 .map = { 91 .map = {
92 .scan = rc6_mce, 92 .scan = rc6_mce,
93 .size = ARRAY_SIZE(rc6_mce), 93 .size = ARRAY_SIZE(rc6_mce),
@@ -98,12 +98,12 @@ static struct rc_keymap rc6_mce_map = {
98 98
99static int __init init_rc_map_rc6_mce(void) 99static int __init init_rc_map_rc6_mce(void)
100{ 100{
101 return ir_register_map(&rc6_mce_map); 101 return rc_map_register(&rc6_mce_map);
102} 102}
103 103
104static void __exit exit_rc_map_rc6_mce(void) 104static void __exit exit_rc_map_rc6_mce(void)
105{ 105{
106 ir_unregister_map(&rc6_mce_map); 106 rc_map_unregister(&rc6_mce_map);
107} 107}
108 108
109module_init(init_rc_map_rc6_mce) 109module_init(init_rc_map_rc6_mce)
diff --git a/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c b/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
index 884416ca0ebe..2d14598592d8 100644
--- a/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
+++ b/drivers/media/rc/keymaps/rc-real-audio-220-32-keys.c
@@ -52,7 +52,7 @@ static struct rc_map_table real_audio_220_32_keys[] = {
52 52
53}; 53};
54 54
55static struct rc_keymap real_audio_220_32_keys_map = { 55static struct rc_map_list real_audio_220_32_keys_map = {
56 .map = { 56 .map = {
57 .scan = real_audio_220_32_keys, 57 .scan = real_audio_220_32_keys,
58 .size = ARRAY_SIZE(real_audio_220_32_keys), 58 .size = ARRAY_SIZE(real_audio_220_32_keys),
@@ -63,12 +63,12 @@ static struct rc_keymap real_audio_220_32_keys_map = {
63 63
64static int __init init_rc_map_real_audio_220_32_keys(void) 64static int __init init_rc_map_real_audio_220_32_keys(void)
65{ 65{
66 return ir_register_map(&real_audio_220_32_keys_map); 66 return rc_map_register(&real_audio_220_32_keys_map);
67} 67}
68 68
69static void __exit exit_rc_map_real_audio_220_32_keys(void) 69static void __exit exit_rc_map_real_audio_220_32_keys(void)
70{ 70{
71 ir_unregister_map(&real_audio_220_32_keys_map); 71 rc_map_unregister(&real_audio_220_32_keys_map);
72} 72}
73 73
74module_init(init_rc_map_real_audio_220_32_keys) 74module_init(init_rc_map_real_audio_220_32_keys)
diff --git a/drivers/media/rc/keymaps/rc-streamzap.c b/drivers/media/rc/keymaps/rc-streamzap.c
index 5a86a7151488..92cc10d2f9cd 100644
--- a/drivers/media/rc/keymaps/rc-streamzap.c
+++ b/drivers/media/rc/keymaps/rc-streamzap.c
@@ -56,7 +56,7 @@ static struct rc_map_table streamzap[] = {
56 56
57}; 57};
58 58
59static struct rc_keymap streamzap_map = { 59static struct rc_map_list streamzap_map = {
60 .map = { 60 .map = {
61 .scan = streamzap, 61 .scan = streamzap,
62 .size = ARRAY_SIZE(streamzap), 62 .size = ARRAY_SIZE(streamzap),
@@ -67,12 +67,12 @@ static struct rc_keymap streamzap_map = {
67 67
68static int __init init_rc_map_streamzap(void) 68static int __init init_rc_map_streamzap(void)
69{ 69{
70 return ir_register_map(&streamzap_map); 70 return rc_map_register(&streamzap_map);
71} 71}
72 72
73static void __exit exit_rc_map_streamzap(void) 73static void __exit exit_rc_map_streamzap(void)
74{ 74{
75 ir_unregister_map(&streamzap_map); 75 rc_map_unregister(&streamzap_map);
76} 76}
77 77
78module_init(init_rc_map_streamzap) 78module_init(init_rc_map_streamzap)
diff --git a/drivers/media/rc/keymaps/rc-tbs-nec.c b/drivers/media/rc/keymaps/rc-tbs-nec.c
index 6e2f5b5b7740..15b9a9b80767 100644
--- a/drivers/media/rc/keymaps/rc-tbs-nec.c
+++ b/drivers/media/rc/keymaps/rc-tbs-nec.c
@@ -47,7 +47,7 @@ static struct rc_map_table tbs_nec[] = {
47 { 0x1b, KEY_MODE}, 47 { 0x1b, KEY_MODE},
48}; 48};
49 49
50static struct rc_keymap tbs_nec_map = { 50static struct rc_map_list tbs_nec_map = {
51 .map = { 51 .map = {
52 .scan = tbs_nec, 52 .scan = tbs_nec,
53 .size = ARRAY_SIZE(tbs_nec), 53 .size = ARRAY_SIZE(tbs_nec),
@@ -58,12 +58,12 @@ static struct rc_keymap tbs_nec_map = {
58 58
59static int __init init_rc_map_tbs_nec(void) 59static int __init init_rc_map_tbs_nec(void)
60{ 60{
61 return ir_register_map(&tbs_nec_map); 61 return rc_map_register(&tbs_nec_map);
62} 62}
63 63
64static void __exit exit_rc_map_tbs_nec(void) 64static void __exit exit_rc_map_tbs_nec(void)
65{ 65{
66 ir_unregister_map(&tbs_nec_map); 66 rc_map_unregister(&tbs_nec_map);
67} 67}
68 68
69module_init(init_rc_map_tbs_nec) 69module_init(init_rc_map_tbs_nec)
diff --git a/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c b/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
index 540020a7821b..bc38e34b9fda 100644
--- a/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
+++ b/drivers/media/rc/keymaps/rc-terratec-cinergy-xs.c
@@ -66,7 +66,7 @@ static struct rc_map_table terratec_cinergy_xs[] = {
66 { 0x5c, KEY_NEXT}, 66 { 0x5c, KEY_NEXT},
67}; 67};
68 68
69static struct rc_keymap terratec_cinergy_xs_map = { 69static struct rc_map_list terratec_cinergy_xs_map = {
70 .map = { 70 .map = {
71 .scan = terratec_cinergy_xs, 71 .scan = terratec_cinergy_xs,
72 .size = ARRAY_SIZE(terratec_cinergy_xs), 72 .size = ARRAY_SIZE(terratec_cinergy_xs),
@@ -77,12 +77,12 @@ static struct rc_keymap terratec_cinergy_xs_map = {
77 77
78static int __init init_rc_map_terratec_cinergy_xs(void) 78static int __init init_rc_map_terratec_cinergy_xs(void)
79{ 79{
80 return ir_register_map(&terratec_cinergy_xs_map); 80 return rc_map_register(&terratec_cinergy_xs_map);
81} 81}
82 82
83static void __exit exit_rc_map_terratec_cinergy_xs(void) 83static void __exit exit_rc_map_terratec_cinergy_xs(void)
84{ 84{
85 ir_unregister_map(&terratec_cinergy_xs_map); 85 rc_map_unregister(&terratec_cinergy_xs_map);
86} 86}
87 87
88module_init(init_rc_map_terratec_cinergy_xs) 88module_init(init_rc_map_terratec_cinergy_xs)
diff --git a/drivers/media/rc/keymaps/rc-terratec-slim.c b/drivers/media/rc/keymaps/rc-terratec-slim.c
index a1513f0299d2..1abafa5fd303 100644
--- a/drivers/media/rc/keymaps/rc-terratec-slim.c
+++ b/drivers/media/rc/keymaps/rc-terratec-slim.c
@@ -53,7 +53,7 @@ static struct rc_map_table terratec_slim[] = {
53 { 0x02bd45, KEY_POWER2 }, /* [red power button] */ 53 { 0x02bd45, KEY_POWER2 }, /* [red power button] */
54}; 54};
55 55
56static struct rc_keymap terratec_slim_map = { 56static struct rc_map_list terratec_slim_map = {
57 .map = { 57 .map = {
58 .scan = terratec_slim, 58 .scan = terratec_slim,
59 .size = ARRAY_SIZE(terratec_slim), 59 .size = ARRAY_SIZE(terratec_slim),
@@ -64,12 +64,12 @@ static struct rc_keymap terratec_slim_map = {
64 64
65static int __init init_rc_map_terratec_slim(void) 65static int __init init_rc_map_terratec_slim(void)
66{ 66{
67 return ir_register_map(&terratec_slim_map); 67 return rc_map_register(&terratec_slim_map);
68} 68}
69 69
70static void __exit exit_rc_map_terratec_slim(void) 70static void __exit exit_rc_map_terratec_slim(void)
71{ 71{
72 ir_unregister_map(&terratec_slim_map); 72 rc_map_unregister(&terratec_slim_map);
73} 73}
74 74
75module_init(init_rc_map_terratec_slim) 75module_init(init_rc_map_terratec_slim)
diff --git a/drivers/media/rc/keymaps/rc-tevii-nec.c b/drivers/media/rc/keymaps/rc-tevii-nec.c
index 6b2fc431689e..ef5ba3f32735 100644
--- a/drivers/media/rc/keymaps/rc-tevii-nec.c
+++ b/drivers/media/rc/keymaps/rc-tevii-nec.c
@@ -62,7 +62,7 @@ static struct rc_map_table tevii_nec[] = {
62 { 0x58, KEY_SWITCHVIDEOMODE}, 62 { 0x58, KEY_SWITCHVIDEOMODE},
63}; 63};
64 64
65static struct rc_keymap tevii_nec_map = { 65static struct rc_map_list tevii_nec_map = {
66 .map = { 66 .map = {
67 .scan = tevii_nec, 67 .scan = tevii_nec,
68 .size = ARRAY_SIZE(tevii_nec), 68 .size = ARRAY_SIZE(tevii_nec),
@@ -73,12 +73,12 @@ static struct rc_keymap tevii_nec_map = {
73 73
74static int __init init_rc_map_tevii_nec(void) 74static int __init init_rc_map_tevii_nec(void)
75{ 75{
76 return ir_register_map(&tevii_nec_map); 76 return rc_map_register(&tevii_nec_map);
77} 77}
78 78
79static void __exit exit_rc_map_tevii_nec(void) 79static void __exit exit_rc_map_tevii_nec(void)
80{ 80{
81 ir_unregister_map(&tevii_nec_map); 81 rc_map_unregister(&tevii_nec_map);
82} 82}
83 83
84module_init(init_rc_map_tevii_nec) 84module_init(init_rc_map_tevii_nec)
diff --git a/drivers/media/rc/keymaps/rc-total-media-in-hand.c b/drivers/media/rc/keymaps/rc-total-media-in-hand.c
index 61a4234f13af..20ac4e19fb3f 100644
--- a/drivers/media/rc/keymaps/rc-total-media-in-hand.c
+++ b/drivers/media/rc/keymaps/rc-total-media-in-hand.c
@@ -59,7 +59,7 @@ static struct rc_map_table total_media_in_hand[] = {
59 { 0x02bd45, KEY_INFO }, /* [red (I)] */ 59 { 0x02bd45, KEY_INFO }, /* [red (I)] */
60}; 60};
61 61
62static struct rc_keymap total_media_in_hand_map = { 62static struct rc_map_list total_media_in_hand_map = {
63 .map = { 63 .map = {
64 .scan = total_media_in_hand, 64 .scan = total_media_in_hand,
65 .size = ARRAY_SIZE(total_media_in_hand), 65 .size = ARRAY_SIZE(total_media_in_hand),
@@ -70,12 +70,12 @@ static struct rc_keymap total_media_in_hand_map = {
70 70
71static int __init init_rc_map_total_media_in_hand(void) 71static int __init init_rc_map_total_media_in_hand(void)
72{ 72{
73 return ir_register_map(&total_media_in_hand_map); 73 return rc_map_register(&total_media_in_hand_map);
74} 74}
75 75
76static void __exit exit_rc_map_total_media_in_hand(void) 76static void __exit exit_rc_map_total_media_in_hand(void)
77{ 77{
78 ir_unregister_map(&total_media_in_hand_map); 78 rc_map_unregister(&total_media_in_hand_map);
79} 79}
80 80
81module_init(init_rc_map_total_media_in_hand) 81module_init(init_rc_map_total_media_in_hand)
diff --git a/drivers/media/rc/keymaps/rc-trekstor.c b/drivers/media/rc/keymaps/rc-trekstor.c
index 2d7bbf8ae83e..f8190ead2e32 100644
--- a/drivers/media/rc/keymaps/rc-trekstor.c
+++ b/drivers/media/rc/keymaps/rc-trekstor.c
@@ -54,7 +54,7 @@ static struct rc_map_table trekstor[] = {
54 { 0x009f, KEY_LEFT }, /* Left */ 54 { 0x009f, KEY_LEFT }, /* Left */
55}; 55};
56 56
57static struct rc_keymap trekstor_map = { 57static struct rc_map_list trekstor_map = {
58 .map = { 58 .map = {
59 .scan = trekstor, 59 .scan = trekstor,
60 .size = ARRAY_SIZE(trekstor), 60 .size = ARRAY_SIZE(trekstor),
@@ -65,12 +65,12 @@ static struct rc_keymap trekstor_map = {
65 65
66static int __init init_rc_map_trekstor(void) 66static int __init init_rc_map_trekstor(void)
67{ 67{
68 return ir_register_map(&trekstor_map); 68 return rc_map_register(&trekstor_map);
69} 69}
70 70
71static void __exit exit_rc_map_trekstor(void) 71static void __exit exit_rc_map_trekstor(void)
72{ 72{
73 ir_unregister_map(&trekstor_map); 73 rc_map_unregister(&trekstor_map);
74} 74}
75 75
76module_init(init_rc_map_trekstor) 76module_init(init_rc_map_trekstor)
diff --git a/drivers/media/rc/keymaps/rc-tt-1500.c b/drivers/media/rc/keymaps/rc-tt-1500.c
index f3fe9f39d069..bb194879a794 100644
--- a/drivers/media/rc/keymaps/rc-tt-1500.c
+++ b/drivers/media/rc/keymaps/rc-tt-1500.c
@@ -56,7 +56,7 @@ static struct rc_map_table tt_1500[] = {
56 { 0x3f, KEY_FORWARD }, 56 { 0x3f, KEY_FORWARD },
57}; 57};
58 58
59static struct rc_keymap tt_1500_map = { 59static struct rc_map_list tt_1500_map = {
60 .map = { 60 .map = {
61 .scan = tt_1500, 61 .scan = tt_1500,
62 .size = ARRAY_SIZE(tt_1500), 62 .size = ARRAY_SIZE(tt_1500),
@@ -67,12 +67,12 @@ static struct rc_keymap tt_1500_map = {
67 67
68static int __init init_rc_map_tt_1500(void) 68static int __init init_rc_map_tt_1500(void)
69{ 69{
70 return ir_register_map(&tt_1500_map); 70 return rc_map_register(&tt_1500_map);
71} 71}
72 72
73static void __exit exit_rc_map_tt_1500(void) 73static void __exit exit_rc_map_tt_1500(void)
74{ 74{
75 ir_unregister_map(&tt_1500_map); 75 rc_map_unregister(&tt_1500_map);
76} 76}
77 77
78module_init(init_rc_map_tt_1500) 78module_init(init_rc_map_tt_1500)
diff --git a/drivers/media/rc/keymaps/rc-twinhan1027.c b/drivers/media/rc/keymaps/rc-twinhan1027.c
index 67cc6e0b326b..8bf8df64b081 100644
--- a/drivers/media/rc/keymaps/rc-twinhan1027.c
+++ b/drivers/media/rc/keymaps/rc-twinhan1027.c
@@ -61,7 +61,7 @@ static struct rc_map_table twinhan_vp1027[] = {
61 { 0x5f, KEY_BLUE }, 61 { 0x5f, KEY_BLUE },
62}; 62};
63 63
64static struct rc_keymap twinhan_vp1027_map = { 64static struct rc_map_list twinhan_vp1027_map = {
65 .map = { 65 .map = {
66 .scan = twinhan_vp1027, 66 .scan = twinhan_vp1027,
67 .size = ARRAY_SIZE(twinhan_vp1027), 67 .size = ARRAY_SIZE(twinhan_vp1027),
@@ -72,12 +72,12 @@ static struct rc_keymap twinhan_vp1027_map = {
72 72
73static int __init init_rc_map_twinhan_vp1027(void) 73static int __init init_rc_map_twinhan_vp1027(void)
74{ 74{
75 return ir_register_map(&twinhan_vp1027_map); 75 return rc_map_register(&twinhan_vp1027_map);
76} 76}
77 77
78static void __exit exit_rc_map_twinhan_vp1027(void) 78static void __exit exit_rc_map_twinhan_vp1027(void)
79{ 79{
80 ir_unregister_map(&twinhan_vp1027_map); 80 rc_map_unregister(&twinhan_vp1027_map);
81} 81}
82 82
83module_init(init_rc_map_twinhan_vp1027) 83module_init(init_rc_map_twinhan_vp1027)
diff --git a/drivers/media/rc/keymaps/rc-videomate-s350.c b/drivers/media/rc/keymaps/rc-videomate-s350.c
index f8a0d107001e..9e474a6024e5 100644
--- a/drivers/media/rc/keymaps/rc-videomate-s350.c
+++ b/drivers/media/rc/keymaps/rc-videomate-s350.c
@@ -59,7 +59,7 @@ static struct rc_map_table videomate_s350[] = {
59 { 0x20, KEY_TEXT}, 59 { 0x20, KEY_TEXT},
60}; 60};
61 61
62static struct rc_keymap videomate_s350_map = { 62static struct rc_map_list videomate_s350_map = {
63 .map = { 63 .map = {
64 .scan = videomate_s350, 64 .scan = videomate_s350,
65 .size = ARRAY_SIZE(videomate_s350), 65 .size = ARRAY_SIZE(videomate_s350),
@@ -70,12 +70,12 @@ static struct rc_keymap videomate_s350_map = {
70 70
71static int __init init_rc_map_videomate_s350(void) 71static int __init init_rc_map_videomate_s350(void)
72{ 72{
73 return ir_register_map(&videomate_s350_map); 73 return rc_map_register(&videomate_s350_map);
74} 74}
75 75
76static void __exit exit_rc_map_videomate_s350(void) 76static void __exit exit_rc_map_videomate_s350(void)
77{ 77{
78 ir_unregister_map(&videomate_s350_map); 78 rc_map_unregister(&videomate_s350_map);
79} 79}
80 80
81module_init(init_rc_map_videomate_s350) 81module_init(init_rc_map_videomate_s350)
diff --git a/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c b/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
index 04d102457ea6..5f2a46e1f8f6 100644
--- a/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
+++ b/drivers/media/rc/keymaps/rc-videomate-tv-pvr.c
@@ -61,7 +61,7 @@ static struct rc_map_table videomate_tv_pvr[] = {
61 { 0x21, KEY_SLEEP }, 61 { 0x21, KEY_SLEEP },
62}; 62};
63 63
64static struct rc_keymap videomate_tv_pvr_map = { 64static struct rc_map_list videomate_tv_pvr_map = {
65 .map = { 65 .map = {
66 .scan = videomate_tv_pvr, 66 .scan = videomate_tv_pvr,
67 .size = ARRAY_SIZE(videomate_tv_pvr), 67 .size = ARRAY_SIZE(videomate_tv_pvr),
@@ -72,12 +72,12 @@ static struct rc_keymap videomate_tv_pvr_map = {
72 72
73static int __init init_rc_map_videomate_tv_pvr(void) 73static int __init init_rc_map_videomate_tv_pvr(void)
74{ 74{
75 return ir_register_map(&videomate_tv_pvr_map); 75 return rc_map_register(&videomate_tv_pvr_map);
76} 76}
77 77
78static void __exit exit_rc_map_videomate_tv_pvr(void) 78static void __exit exit_rc_map_videomate_tv_pvr(void)
79{ 79{
80 ir_unregister_map(&videomate_tv_pvr_map); 80 rc_map_unregister(&videomate_tv_pvr_map);
81} 81}
82 82
83module_init(init_rc_map_videomate_tv_pvr) 83module_init(init_rc_map_videomate_tv_pvr)
diff --git a/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c b/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
index 78fc7da4b9e2..bd8d021f40aa 100644
--- a/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
+++ b/drivers/media/rc/keymaps/rc-winfast-usbii-deluxe.c
@@ -56,7 +56,7 @@ static struct rc_map_table winfast_usbii_deluxe[] = {
56 56
57}; 57};
58 58
59static struct rc_keymap winfast_usbii_deluxe_map = { 59static struct rc_map_list winfast_usbii_deluxe_map = {
60 .map = { 60 .map = {
61 .scan = winfast_usbii_deluxe, 61 .scan = winfast_usbii_deluxe,
62 .size = ARRAY_SIZE(winfast_usbii_deluxe), 62 .size = ARRAY_SIZE(winfast_usbii_deluxe),
@@ -67,12 +67,12 @@ static struct rc_keymap winfast_usbii_deluxe_map = {
67 67
68static int __init init_rc_map_winfast_usbii_deluxe(void) 68static int __init init_rc_map_winfast_usbii_deluxe(void)
69{ 69{
70 return ir_register_map(&winfast_usbii_deluxe_map); 70 return rc_map_register(&winfast_usbii_deluxe_map);
71} 71}
72 72
73static void __exit exit_rc_map_winfast_usbii_deluxe(void) 73static void __exit exit_rc_map_winfast_usbii_deluxe(void)
74{ 74{
75 ir_unregister_map(&winfast_usbii_deluxe_map); 75 rc_map_unregister(&winfast_usbii_deluxe_map);
76} 76}
77 77
78module_init(init_rc_map_winfast_usbii_deluxe) 78module_init(init_rc_map_winfast_usbii_deluxe)
diff --git a/drivers/media/rc/keymaps/rc-winfast.c b/drivers/media/rc/keymaps/rc-winfast.c
index a8fbd7662d39..2747db43b70c 100644
--- a/drivers/media/rc/keymaps/rc-winfast.c
+++ b/drivers/media/rc/keymaps/rc-winfast.c
@@ -76,7 +76,7 @@ static struct rc_map_table winfast[] = {
76 { 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */ 76 { 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */
77}; 77};
78 78
79static struct rc_keymap winfast_map = { 79static struct rc_map_list winfast_map = {
80 .map = { 80 .map = {
81 .scan = winfast, 81 .scan = winfast,
82 .size = ARRAY_SIZE(winfast), 82 .size = ARRAY_SIZE(winfast),
@@ -87,12 +87,12 @@ static struct rc_keymap winfast_map = {
87 87
88static int __init init_rc_map_winfast(void) 88static int __init init_rc_map_winfast(void)
89{ 89{
90 return ir_register_map(&winfast_map); 90 return rc_map_register(&winfast_map);
91} 91}
92 92
93static void __exit exit_rc_map_winfast(void) 93static void __exit exit_rc_map_winfast(void)
94{ 94{
95 ir_unregister_map(&winfast_map); 95 rc_map_unregister(&winfast_map);
96} 96}
97 97
98module_init(init_rc_map_winfast) 98module_init(init_rc_map_winfast)