mac80211_hwsim: correctly register the platform driver
authorSasha Levin <sasha.levin@oracle.com>
Wed, 24 Apr 2013 04:40:05 +0000 (00:40 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 20:38:02 +0000 (22:38 +0200)
commitc07fe5ae0667f1077d671f62a093261223f918af
tree8b366d499ac5d768297d6d573f648d8ffb0f614d
parent03cd7e4e1ea16cd151c799a33b5ca1fd41a464df
mac80211_hwsim: correctly register the platform driver

Not registering a platform_driver would make us access garbage
when the platform callbacks under driver_register() kicks in.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Tested-By: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c