Commit 4810603c authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Andi Shyti

i2c: i801: Remove unused argument from tco functions

Argument priv isn't used, so remove it.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent ecaaeff9
...@@ -1445,8 +1445,7 @@ static inline void i801_del_mux(struct i801_priv *priv) { } ...@@ -1445,8 +1445,7 @@ static inline void i801_del_mux(struct i801_priv *priv) { }
#endif #endif
static struct platform_device * static struct platform_device *
i801_add_tco_spt(struct i801_priv *priv, struct pci_dev *pci_dev, i801_add_tco_spt(struct pci_dev *pci_dev, struct resource *tco_res)
struct resource *tco_res)
{ {
static const struct itco_wdt_platform_data pldata = { static const struct itco_wdt_platform_data pldata = {
.name = "Intel PCH", .name = "Intel PCH",
...@@ -1477,8 +1476,7 @@ i801_add_tco_spt(struct i801_priv *priv, struct pci_dev *pci_dev, ...@@ -1477,8 +1476,7 @@ i801_add_tco_spt(struct i801_priv *priv, struct pci_dev *pci_dev,
} }
static struct platform_device * static struct platform_device *
i801_add_tco_cnl(struct i801_priv *priv, struct pci_dev *pci_dev, i801_add_tco_cnl(struct pci_dev *pci_dev, struct resource *tco_res)
struct resource *tco_res)
{ {
static const struct itco_wdt_platform_data pldata = { static const struct itco_wdt_platform_data pldata = {
.name = "Intel PCH", .name = "Intel PCH",
...@@ -1518,9 +1516,9 @@ static void i801_add_tco(struct i801_priv *priv) ...@@ -1518,9 +1516,9 @@ static void i801_add_tco(struct i801_priv *priv)
res->flags = IORESOURCE_IO; res->flags = IORESOURCE_IO;
if (priv->features & FEATURE_TCO_CNL) if (priv->features & FEATURE_TCO_CNL)
priv->tco_pdev = i801_add_tco_cnl(priv, pci_dev, tco_res); priv->tco_pdev = i801_add_tco_cnl(pci_dev, tco_res);
else else
priv->tco_pdev = i801_add_tco_spt(priv, pci_dev, tco_res); priv->tco_pdev = i801_add_tco_spt(pci_dev, tco_res);
if (IS_ERR(priv->tco_pdev)) if (IS_ERR(priv->tco_pdev))
dev_warn(&pci_dev->dev, "failed to create iTCO device\n"); dev_warn(&pci_dev->dev, "failed to create iTCO device\n");
......
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