net: dm9000: 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: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b96f64dd47
commit
cd4e2e4b36
|
@ -1384,7 +1384,7 @@ static struct dm9000_plat_data *dm9000_parse_dt(struct device *dev)
|
|||
static int
|
||||
dm9000_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct dm9000_plat_data *pdata = pdev->dev.platform_data;
|
||||
struct dm9000_plat_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct board_info *db; /* Point a board information structure */
|
||||
struct net_device *ndev;
|
||||
const unsigned char *mac_src;
|
||||
|
|
Loading…
Reference in New Issue