Commit d33c1830 authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

Unify the wrn_from_pdev function for nodes and switches.

parent 85b98abb
......@@ -32,20 +32,10 @@
static const char *irqdomain_name = "htvic-wr-swi.0";
#if WR_IS_NODE /* Our platform_data is different in node vs switch */
#include "../spec-nic.h"
static inline struct wrn_dev *wrn_from_pdev(struct platform_device *pdev)
struct wrn_drvdata *drvdata = pdev->dev.platform_data;
return drvdata->wrn;
#else /* WR_IS_SWITCH */
static inline struct wrn_dev *wrn_from_pdev(struct platform_device *pdev)
return pdev->dev.platform_data;
/* The remove function is used by probe, so it's not __devexit */
static int wrn_remove(struct platform_device *pdev)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment