Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f4fe16b authored by Jingoo Han's avatar Jingoo Han Committed by John W. Linville
Browse files

wireless: wl1251: 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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7204c978
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ static int wl1251_spi_probe(struct spi_device *spi)
	struct wl1251 *wl;
	int ret;

	pdata = spi->dev.platform_data;
	pdata = dev_get_platdata(&spi->dev);
	if (!pdata) {
		wl1251_error("no platform data");
		return -ENODEV;