From: Jingoo Han Date: Tue, 10 Sep 2013 08:42:19 +0000 (+0900) Subject: can: mcp251x: use dev_get_platdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=369566ef13c70ba368e370cf3df42df7ebc51e66;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git can: mcp251x: use dev_get_platdata() Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c index fe7dd696957e..08ac401e0214 100644 --- a/drivers/net/can/mcp251x.c +++ b/drivers/net/can/mcp251x.c @@ -999,7 +999,7 @@ static int mcp251x_can_probe(struct spi_device *spi) { struct net_device *net; struct mcp251x_priv *priv; - struct mcp251x_platform_data *pdata = spi->dev.platform_data; + struct mcp251x_platform_data *pdata = dev_get_platdata(&spi->dev); int ret = -ENODEV; if (!pdata)