]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/i2c-uclass-compat.c
mtd: spi: Correct parameters for s25fs512s flash
[u-boot] / drivers / i2c / i2c-uclass-compat.c
index 5606d1f807f64dead14b8ba65a66cfc4f3852b08..b3ade88113dbc35dbb32dd3babd3fc6aa01c4e3d 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2014 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -9,7 +8,7 @@
 #include <errno.h>
 #include <i2c.h>
 
-static int cur_busnum;
+static int cur_busnum __attribute__((section(".data")));
 
 static int i2c_compat_get_device(uint chip_addr, int alen,
                                 struct udevice **devp)