USB: host: 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
4fae6f0fa8
commit
d4f09e28d7
@@ -1626,7 +1626,7 @@ static int isp116x_probe(struct platform_device *pdev)
|
||||
isp116x->addr_reg = addr_reg;
|
||||
spin_lock_init(&isp116x->lock);
|
||||
INIT_LIST_HEAD(&isp116x->async);
|
||||
isp116x->board = pdev->dev.platform_data;
|
||||
isp116x->board = dev_get_platdata(&pdev->dev);
|
||||
|
||||
if (!isp116x->board) {
|
||||
ERR("Platform data structure not initialized\n");
|
||||
|
Reference in New Issue
Block a user