Skip to content

Commit 4810603

Browse files
hkallweitAndi Shyti
authored andcommitted
i2c: i801: Remove unused argument from tco functions
Argument priv isn't used, so remove it. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent ecaaeff commit 4810603

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,7 @@ static inline void i801_del_mux(struct i801_priv *priv) { }
14451445
#endif
14461446

14471447
static struct platform_device *
1448-
i801_add_tco_spt(struct i801_priv *priv, struct pci_dev *pci_dev,
1449-
struct resource *tco_res)
1448+
i801_add_tco_spt(struct pci_dev *pci_dev, struct resource *tco_res)
14501449
{
14511450
static const struct itco_wdt_platform_data pldata = {
14521451
.name = "Intel PCH",
@@ -1477,8 +1476,7 @@ i801_add_tco_spt(struct i801_priv *priv, struct pci_dev *pci_dev,
14771476
}
14781477

14791478
static struct platform_device *
1480-
i801_add_tco_cnl(struct i801_priv *priv, struct pci_dev *pci_dev,
1481-
struct resource *tco_res)
1479+
i801_add_tco_cnl(struct pci_dev *pci_dev, struct resource *tco_res)
14821480
{
14831481
static const struct itco_wdt_platform_data pldata = {
14841482
.name = "Intel PCH",
@@ -1518,9 +1516,9 @@ static void i801_add_tco(struct i801_priv *priv)
15181516
res->flags = IORESOURCE_IO;
15191517

15201518
if (priv->features & FEATURE_TCO_CNL)
1521-
priv->tco_pdev = i801_add_tco_cnl(priv, pci_dev, tco_res);
1519+
priv->tco_pdev = i801_add_tco_cnl(pci_dev, tco_res);
15221520
else
1523-
priv->tco_pdev = i801_add_tco_spt(priv, pci_dev, tco_res);
1521+
priv->tco_pdev = i801_add_tco_spt(pci_dev, tco_res);
15241522

15251523
if (IS_ERR(priv->tco_pdev))
15261524
dev_warn(&pci_dev->dev, "failed to create iTCO device\n");

0 commit comments

Comments
 (0)