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:

committed by
Greg Kroah-Hartman

parent
e26439ce03
commit
574de559c1
@@ -721,7 +721,7 @@ static int pl010_probe(struct amba_device *dev, const struct amba_id *id)
|
||||
uap->port.flags = UPF_BOOT_AUTOCONF;
|
||||
uap->port.line = i;
|
||||
uap->dev = dev;
|
||||
uap->data = dev->dev.platform_data;
|
||||
uap->data = dev_get_platdata(&dev->dev);
|
||||
|
||||
amba_ports[i] = uap;
|
||||
|
||||
|
Reference in New Issue
Block a user