mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
can: softing: 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 <jg1.han@samsung.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
ecd78d9753
commit
c58bd85808
@ -768,7 +768,7 @@ static int softing_pdev_remove(struct platform_device *pdev)
|
||||
|
||||
static int softing_pdev_probe(struct platform_device *pdev)
|
||||
{
|
||||
const struct softing_platform_data *pdat = pdev->dev.platform_data;
|
||||
const struct softing_platform_data *pdat = dev_get_platdata(&pdev->dev);
|
||||
struct softing *card;
|
||||
struct net_device *netdev;
|
||||
struct softing_priv *priv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user