net: dm9k: Fix buswidth setting for platform data probe
priv->buswidth expects IORESOURCE_MEM_* macros which are not
identical to the integer byte bus width, so calling
dm9000_setup_buswidth() for the platform_data case is wrong.

fixes: d818f02 net: dm9k: add device tree support

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported by: 张忠山 <zzs213@126.com>
1 parent 8ef4478 commit 1ebb663db9acc9e011fe2dbc071b0ef5ca02c7d8
@Sascha Hauer Sascha Hauer authored on 27 Jun 2016
Showing 1 changed file
View
drivers/net/dm9k.c