Make the patches apply cleanly again.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
-@@ -866,6 +866,29 @@ static int sfp_i2c_mdiobus_create(struct
+@@ -850,6 +850,29 @@ static int sfp_i2c_mdiobus_create(struct
return 0;
}
static void sfp_i2c_mdiobus_destroy(struct sfp *sfp)
{
mdiobus_unregister(sfp->i2c_mii);
-@@ -2040,9 +2063,15 @@ static void sfp_sm_fault(struct sfp *sfp
+@@ -2024,9 +2047,15 @@ static void sfp_sm_fault(struct sfp *sfp
static int sfp_sm_add_mdio_bus(struct sfp *sfp)
{
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
-@@ -825,21 +825,29 @@ static int sfp_smbus_byte_write(struct s
+@@ -809,21 +809,29 @@ static int sfp_smbus_byte_write(struct s
static int sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c)
{
#include <linux/workqueue.h>
#include "sfp.h"
-@@ -774,50 +775,101 @@ static int sfp_i2c_write(struct sfp *sfp
+@@ -758,50 +759,101 @@ static int sfp_i2c_write(struct sfp *sfp
return ret == ARRAY_SIZE(msgs) ? len : 0;
}
}
return data - (u8 *)buf;
-@@ -826,17 +878,32 @@ static int sfp_smbus_byte_write(struct s
+@@ -810,17 +862,32 @@ static int sfp_smbus_byte_write(struct s
static int sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c)
{
size_t max_block_size;