]> git.sur5r.net Git - u-boot/blobdiff - test/dm/spi.c
ARM: rmobile: Represent SF partitioning with mtdparts on Koelsch
[u-boot] / test / dm / spi.c
index f52cb733c775f7f1f9661b6f245f1e5182c0c8a7..252b87431fb0439620a7236ec83f73de6e684df4 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2013 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -36,7 +35,7 @@ static int dm_test_spi_find(struct unit_test_state *uts)
        ut_asserteq(0, uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus));
        ut_assertok(spi_cs_info(bus, cs, &info));
        of_offset = dev_of_offset(info.dev);
-       device_remove(info.dev);
+       device_remove(info.dev, DM_REMOVE_NORMAL);
        device_unbind(info.dev);
 
        /*