Commit 958544475462560a26ba2a1ae01998019d303c58
Committed by
Greg Kroah-Hartman
1 parent
31f5221327
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
drivers: uio_pruss: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/uio/uio_pruss.c
... | ... | @@ -121,7 +121,7 @@ |
121 | 121 | struct uio_pruss_dev *gdev; |
122 | 122 | struct resource *regs_prussio; |
123 | 123 | int ret = -ENODEV, cnt = 0, len; |
124 | - struct uio_pruss_pdata *pdata = dev->dev.platform_data; | |
124 | + struct uio_pruss_pdata *pdata = dev_get_platdata(&dev->dev); | |
125 | 125 | |
126 | 126 | gdev = kzalloc(sizeof(struct uio_pruss_dev), GFP_KERNEL); |
127 | 127 | if (!gdev) |