usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver
[platform/kernel/u-boot.git] / drivers / i2c / i2c-versatile.c
index f523844..0a1a85d 100644 (file)
@@ -11,6 +11,8 @@
 #include <i2c.h>
 #include <asm/io.h>
 #include <clk.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 
 #define I2C_CONTROL_REG                0x00
@@ -250,11 +252,6 @@ static int versatile_i2c_probe(struct udevice *dev)
 
        priv->base = (phys_addr_t)dev_read_addr(dev);
        priv->delay = 25;       /* 25us * 4 = 100kHz */
-       /*
-        * U-Boot still doesn't assign automatically
-        * sequence numbers to devices
-        */
-       dev->req_seq = 1;
 
        return 0;
 }
@@ -275,6 +272,6 @@ U_BOOT_DRIVER(versatile_i2c) = {
        .id = UCLASS_I2C,
        .of_match = versatile_i2c_of_match,
        .probe = versatile_i2c_probe,
-       .priv_auto_alloc_size = sizeof(struct versatile_i2c_priv),
+       .priv_auto      = sizeof(struct versatile_i2c_priv),
        .ops = &versatile_i2c_ops,
 };