diff options
Diffstat (limited to 'drivers/tty/serial/of_serial.c')
-rw-r--r-- | drivers/tty/serial/of_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c index 39c7ea4cb14f..2caf9c6f6149 100644 --- a/drivers/tty/serial/of_serial.c +++ b/drivers/tty/serial/of_serial.c | |||
@@ -204,7 +204,7 @@ static int of_platform_serial_probe(struct platform_device *ofdev) | |||
204 | 204 | ||
205 | info->type = port_type; | 205 | info->type = port_type; |
206 | info->line = ret; | 206 | info->line = ret; |
207 | dev_set_drvdata(&ofdev->dev, info); | 207 | platform_set_drvdata(ofdev, info); |
208 | return 0; | 208 | return 0; |
209 | out: | 209 | out: |
210 | kfree(info); | 210 | kfree(info); |
@@ -217,7 +217,7 @@ out: | |||
217 | */ | 217 | */ |
218 | static int of_platform_serial_remove(struct platform_device *ofdev) | 218 | static int of_platform_serial_remove(struct platform_device *ofdev) |
219 | { | 219 | { |
220 | struct of_serial_info *info = dev_get_drvdata(&ofdev->dev); | 220 | struct of_serial_info *info = platform_get_drvdata(ofdev); |
221 | switch (info->type) { | 221 | switch (info->type) { |
222 | #ifdef CONFIG_SERIAL_8250 | 222 | #ifdef CONFIG_SERIAL_8250 |
223 | case PORT_8250 ... PORT_MAX_8250: | 223 | case PORT_8250 ... PORT_MAX_8250: |