1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * (C) Copyright 2018 Rockchip Electronics Co., Ltd 4 */ 5 6 #include <common.h> 7 #include <console.h> 8 #include <io-domain.h> 9 10 int io_domain_init(void) 11 { 12 struct udevice *dev; 13 struct uclass *uc; 14 int ret; 15 16 ret = uclass_get(UCLASS_IO_DOMAIN, &uc); 17 if (ret) 18 return ret; 19 20 for (uclass_first_device(UCLASS_IO_DOMAIN, &dev); 21 dev; 22 uclass_next_device(&dev)) 23 ; 24 25 return 0; 26 } 27 28 UCLASS_DRIVER(io_domain) = { 29 .id = UCLASS_IO_DOMAIN, 30 .name = "io_domain", 31 }; 32