usb: xhci: Get rid of CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS
[oweals/u-boot.git] / drivers / usb / phy / twl4030.c
index f41cc07fe709459e1c45a3f7b4132ae3c594cedf..6dcb336bbf043f2adaf79c562fbbeaa4844f73d5 100644 (file)
  *
  * ------------------------------------------------------------------------
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <twl4030.h>
@@ -66,7 +53,7 @@ static int twl4030_usb_read(u8 address)
        u8 data;
        int ret;
 
-       ret = twl4030_i2c_read_u8(TWL4030_CHIP_USB, &data, address);
+       ret = twl4030_i2c_read_u8(TWL4030_CHIP_USB, address, &data);
        if (ret == 0)
                ret = data;
        else