Skip to content

Commit

Permalink
Staging: rtl8192su: remove all code dependent on LINUX_VERSION_CODE
Browse files Browse the repository at this point in the history
Remove all code which is dead for in-kernel driver due to being
ifdefed by LINUX_VERSION_CODE.

While at it, also remove surrounding code which is commented out,
or '#if 1' nops.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jiri Kosina authored and Greg Kroah-Hartman committed Jun 18, 2010
1 parent 5749df1 commit bb71770
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/staging/rtl8192su/r8192SU_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,22 +1087,13 @@ BlinkTimerCallback(
struct net_device *dev = (struct net_device *)data;
struct r8192_priv *priv = ieee80211_priv(dev);

#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
schedule_work(&(priv->BlinkWorkItem));
#endif
}


#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
void BlinkWorkItemCallback(struct work_struct *work)
{
struct r8192_priv *priv = container_of(work, struct r8192_priv, BlinkWorkItem);
#else
void BlinkWorkItemCallback(void * Context)
{
struct net_device *dev = (struct net_device *)Context;
struct r8192_priv *priv = ieee80211_priv(dev);
#endif

PLED_819xUsb pLed = priv->pLed;

Expand Down

0 comments on commit bb71770

Please sign in to comment.