Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR
[platform/kernel/u-boot.git] / drivers / misc / syscon_sandbox.c
1 /*
2  * Copyright (c) 2015 Google, Inc
3  * Written by Simon Glass <sjg@chromium.org>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <dm.h>
10 #include <errno.h>
11 #include <syscon.h>
12 #include <asm/test.h>
13 #include <dm/lists.h>
14
15 static const struct udevice_id sandbox_syscon_ids[] = {
16         { .compatible = "sandbox,syscon0", .data = SYSCON0 },
17         { .compatible = "sandbox,syscon1", .data = SYSCON1 },
18         { }
19 };
20
21 U_BOOT_DRIVER(sandbox_syscon) = {
22         .name   = "sandbox_syscon",
23         .id     = UCLASS_SYSCON,
24         .of_match = sandbox_syscon_ids,
25 };