Commit 958544475462560a26ba2a1ae01998019d303c58

Authored by Jingoo Han
Committed by Greg Kroah-Hartman
1 parent 31f5221327

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)