serial: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committato da
Greg Kroah-Hartman

parent
e26439ce03
commit
574de559c1
@@ -24,6 +24,7 @@
|
||||
#include <linux/serial_core.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <asm/coldfire.h>
|
||||
#include <asm/mcfsim.h>
|
||||
#include <asm/mcfuart.h>
|
||||
@@ -644,7 +645,7 @@ static struct uart_driver mcf_driver = {
|
||||
|
||||
static int mcf_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct mcf_platform_uart *platp = pdev->dev.platform_data;
|
||||
struct mcf_platform_uart *platp = dev_get_platdata(&pdev->dev);
|
||||
struct uart_port *port;
|
||||
int i;
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user