Anastasia Klimchuk has uploaded this change for review.
bitbang: Make use of new register_spi_master() API
BUG=b:185191942
TEST=builds
Change-Id: I8f251910cec728a78b79c17de355bcf0c736c69a
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
---
M bitbang_spi.c
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/87/55087/1
diff --git a/bitbang_spi.c b/bitbang_spi.c
index 85c867e..e70d883 100644
--- a/bitbang_spi.c
+++ b/bitbang_spi.c
@@ -161,8 +161,7 @@
struct bitbang_spi_master_data *data = calloc(1, sizeof(struct bitbang_spi_master_data));
data->master = master;
- mst.data = data;
- register_spi_master(&mst, NULL);
+ register_spi_master(&mst, data);
register_shutdown(bitbang_spi_shutdown, data);
/* Only mess with the bus if we're sure nobody else uses it. */
To view, visit change 55087. To unsubscribe, or for help writing mail filters, visit settings.