diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/aty/radeon_i2c.c | 8 | ||||
-rw-r--r-- | drivers/video/i810/i810-i2c.c | 6 | ||||
-rw-r--r-- | drivers/video/intelfb/intelfb_i2c.c | 4 | ||||
-rw-r--r-- | drivers/video/matrox/i2c-matroxfb.c | 2 | ||||
-rw-r--r-- | drivers/video/nvidia/nv_i2c.c | 6 | ||||
-rw-r--r-- | drivers/video/riva/rivafb-i2c.c | 6 | ||||
-rw-r--r-- | drivers/video/savage/savagefb-i2c.c | 2 |
7 files changed, 17 insertions, 17 deletions
diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c index 869725a13c21..e7c5b219ad1b 100644 --- a/drivers/video/aty/radeon_i2c.c +++ b/drivers/video/aty/radeon_i2c.c | |||
@@ -120,19 +120,19 @@ void radeon_create_i2c_busses(struct radeonfb_info *rinfo) | |||
120 | void radeon_delete_i2c_busses(struct radeonfb_info *rinfo) | 120 | void radeon_delete_i2c_busses(struct radeonfb_info *rinfo) |
121 | { | 121 | { |
122 | if (rinfo->i2c[0].rinfo) | 122 | if (rinfo->i2c[0].rinfo) |
123 | i2c_bit_del_bus(&rinfo->i2c[0].adapter); | 123 | i2c_del_adapter(&rinfo->i2c[0].adapter); |
124 | rinfo->i2c[0].rinfo = NULL; | 124 | rinfo->i2c[0].rinfo = NULL; |
125 | 125 | ||
126 | if (rinfo->i2c[1].rinfo) | 126 | if (rinfo->i2c[1].rinfo) |
127 | i2c_bit_del_bus(&rinfo->i2c[1].adapter); | 127 | i2c_del_adapter(&rinfo->i2c[1].adapter); |
128 | rinfo->i2c[1].rinfo = NULL; | 128 | rinfo->i2c[1].rinfo = NULL; |
129 | 129 | ||
130 | if (rinfo->i2c[2].rinfo) | 130 | if (rinfo->i2c[2].rinfo) |
131 | i2c_bit_del_bus(&rinfo->i2c[2].adapter); | 131 | i2c_del_adapter(&rinfo->i2c[2].adapter); |
132 | rinfo->i2c[2].rinfo = NULL; | 132 | rinfo->i2c[2].rinfo = NULL; |
133 | 133 | ||
134 | if (rinfo->i2c[3].rinfo) | 134 | if (rinfo->i2c[3].rinfo) |
135 | i2c_bit_del_bus(&rinfo->i2c[3].adapter); | 135 | i2c_del_adapter(&rinfo->i2c[3].adapter); |
136 | rinfo->i2c[3].rinfo = NULL; | 136 | rinfo->i2c[3].rinfo = NULL; |
137 | } | 137 | } |
138 | 138 | ||
diff --git a/drivers/video/i810/i810-i2c.c b/drivers/video/i810/i810-i2c.c index b952e4504abe..961f4d404467 100644 --- a/drivers/video/i810/i810-i2c.c +++ b/drivers/video/i810/i810-i2c.c | |||
@@ -137,15 +137,15 @@ void i810_create_i2c_busses(struct i810fb_par *par) | |||
137 | void i810_delete_i2c_busses(struct i810fb_par *par) | 137 | void i810_delete_i2c_busses(struct i810fb_par *par) |
138 | { | 138 | { |
139 | if (par->chan[0].par) | 139 | if (par->chan[0].par) |
140 | i2c_bit_del_bus(&par->chan[0].adapter); | 140 | i2c_del_adapter(&par->chan[0].adapter); |
141 | par->chan[0].par = NULL; | 141 | par->chan[0].par = NULL; |
142 | 142 | ||
143 | if (par->chan[1].par) | 143 | if (par->chan[1].par) |
144 | i2c_bit_del_bus(&par->chan[1].adapter); | 144 | i2c_del_adapter(&par->chan[1].adapter); |
145 | par->chan[1].par = NULL; | 145 | par->chan[1].par = NULL; |
146 | 146 | ||
147 | if (par->chan[2].par) | 147 | if (par->chan[2].par) |
148 | i2c_bit_del_bus(&par->chan[2].adapter); | 148 | i2c_del_adapter(&par->chan[2].adapter); |
149 | par->chan[2].par = NULL; | 149 | par->chan[2].par = NULL; |
150 | } | 150 | } |
151 | 151 | ||
diff --git a/drivers/video/intelfb/intelfb_i2c.c b/drivers/video/intelfb/intelfb_i2c.c index 5686e2164e39..33bc41f50540 100644 --- a/drivers/video/intelfb/intelfb_i2c.c +++ b/drivers/video/intelfb/intelfb_i2c.c | |||
@@ -188,11 +188,11 @@ void intelfb_delete_i2c_busses(struct intelfb_info *dinfo) | |||
188 | 188 | ||
189 | for (i = 0; i < MAX_OUTPUTS; i++) { | 189 | for (i = 0; i < MAX_OUTPUTS; i++) { |
190 | if (dinfo->output[i].i2c_bus.dinfo) { | 190 | if (dinfo->output[i].i2c_bus.dinfo) { |
191 | i2c_bit_del_bus(&dinfo->output[i].i2c_bus.adapter); | 191 | i2c_del_adapter(&dinfo->output[i].i2c_bus.adapter); |
192 | dinfo->output[i].i2c_bus.dinfo = NULL; | 192 | dinfo->output[i].i2c_bus.dinfo = NULL; |
193 | } | 193 | } |
194 | if (dinfo->output[i].ddc_bus.dinfo) { | 194 | if (dinfo->output[i].ddc_bus.dinfo) { |
195 | i2c_bit_del_bus(&dinfo->output[i].ddc_bus.adapter); | 195 | i2c_del_adapter(&dinfo->output[i].ddc_bus.adapter); |
196 | dinfo->output[i].ddc_bus.dinfo = NULL; | 196 | dinfo->output[i].ddc_bus.dinfo = NULL; |
197 | } | 197 | } |
198 | } | 198 | } |
diff --git a/drivers/video/matrox/i2c-matroxfb.c b/drivers/video/matrox/i2c-matroxfb.c index 795c1a99a680..797b42305b0f 100644 --- a/drivers/video/matrox/i2c-matroxfb.c +++ b/drivers/video/matrox/i2c-matroxfb.c | |||
@@ -124,7 +124,7 @@ static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo, | |||
124 | 124 | ||
125 | static void i2c_bit_bus_del(struct i2c_bit_adapter* b) { | 125 | static void i2c_bit_bus_del(struct i2c_bit_adapter* b) { |
126 | if (b->initialized) { | 126 | if (b->initialized) { |
127 | i2c_bit_del_bus(&b->adapter); | 127 | i2c_del_adapter(&b->adapter); |
128 | b->initialized = 0; | 128 | b->initialized = 0; |
129 | } | 129 | } |
130 | } | 130 | } |
diff --git a/drivers/video/nvidia/nv_i2c.c b/drivers/video/nvidia/nv_i2c.c index 442e85328341..8454adf2d178 100644 --- a/drivers/video/nvidia/nv_i2c.c +++ b/drivers/video/nvidia/nv_i2c.c | |||
@@ -147,15 +147,15 @@ void nvidia_create_i2c_busses(struct nvidia_par *par) | |||
147 | void nvidia_delete_i2c_busses(struct nvidia_par *par) | 147 | void nvidia_delete_i2c_busses(struct nvidia_par *par) |
148 | { | 148 | { |
149 | if (par->chan[0].par) | 149 | if (par->chan[0].par) |
150 | i2c_bit_del_bus(&par->chan[0].adapter); | 150 | i2c_del_adapter(&par->chan[0].adapter); |
151 | par->chan[0].par = NULL; | 151 | par->chan[0].par = NULL; |
152 | 152 | ||
153 | if (par->chan[1].par) | 153 | if (par->chan[1].par) |
154 | i2c_bit_del_bus(&par->chan[1].adapter); | 154 | i2c_del_adapter(&par->chan[1].adapter); |
155 | par->chan[1].par = NULL; | 155 | par->chan[1].par = NULL; |
156 | 156 | ||
157 | if (par->chan[2].par) | 157 | if (par->chan[2].par) |
158 | i2c_bit_del_bus(&par->chan[2].adapter); | 158 | i2c_del_adapter(&par->chan[2].adapter); |
159 | par->chan[2].par = NULL; | 159 | par->chan[2].par = NULL; |
160 | 160 | ||
161 | } | 161 | } |
diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c index c15b259af644..01b85e3b0ae1 100644 --- a/drivers/video/riva/rivafb-i2c.c +++ b/drivers/video/riva/rivafb-i2c.c | |||
@@ -144,15 +144,15 @@ void riva_create_i2c_busses(struct riva_par *par) | |||
144 | void riva_delete_i2c_busses(struct riva_par *par) | 144 | void riva_delete_i2c_busses(struct riva_par *par) |
145 | { | 145 | { |
146 | if (par->chan[0].par) | 146 | if (par->chan[0].par) |
147 | i2c_bit_del_bus(&par->chan[0].adapter); | 147 | i2c_del_adapter(&par->chan[0].adapter); |
148 | par->chan[0].par = NULL; | 148 | par->chan[0].par = NULL; |
149 | 149 | ||
150 | if (par->chan[1].par) | 150 | if (par->chan[1].par) |
151 | i2c_bit_del_bus(&par->chan[1].adapter); | 151 | i2c_del_adapter(&par->chan[1].adapter); |
152 | par->chan[1].par = NULL; | 152 | par->chan[1].par = NULL; |
153 | 153 | ||
154 | if (par->chan[2].par) | 154 | if (par->chan[2].par) |
155 | i2c_bit_del_bus(&par->chan[2].adapter); | 155 | i2c_del_adapter(&par->chan[2].adapter); |
156 | par->chan[2].par = NULL; | 156 | par->chan[2].par = NULL; |
157 | } | 157 | } |
158 | 158 | ||
diff --git a/drivers/video/savage/savagefb-i2c.c b/drivers/video/savage/savagefb-i2c.c index cef5bf591cdf..1411f3b6a009 100644 --- a/drivers/video/savage/savagefb-i2c.c +++ b/drivers/video/savage/savagefb-i2c.c | |||
@@ -208,7 +208,7 @@ void savagefb_delete_i2c_busses(struct fb_info *info) | |||
208 | struct savagefb_par *par = info->par; | 208 | struct savagefb_par *par = info->par; |
209 | 209 | ||
210 | if (par->chan.par) | 210 | if (par->chan.par) |
211 | i2c_bit_del_bus(&par->chan.adapter); | 211 | i2c_del_adapter(&par->chan.adapter); |
212 | 212 | ||
213 | par->chan.par = NULL; | 213 | par->chan.par = NULL; |
214 | } | 214 | } |