Révision | 9cc6fa255bc71b007ffc212b1b9332c44db5d59f (tree) |
---|---|
l'heure | 2022-08-01 18:40:58 |
Auteur | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
fdtdec.c: fix non-pci system.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -239,6 +239,7 @@ int fdtdec_get_pci_vendev(const void *blob, int node, u16 *vendor, u16 *device) | ||
239 | 239 | return -ENOENT; |
240 | 240 | } |
241 | 241 | |
242 | +#if defined(CONFIG_PCI) | |
242 | 243 | int fdtdec_get_pci_bar32(const struct udevice *dev, struct fdt_pci_addr *addr, |
243 | 244 | u32 *bar) |
244 | 245 | { |
@@ -271,6 +272,7 @@ int fdtdec_get_pci_bus_range(const void *blob, int node, | ||
271 | 272 | |
272 | 273 | return 0; |
273 | 274 | } |
275 | +#endif | |
274 | 276 | |
275 | 277 | uint64_t fdtdec_get_uint64(const void *blob, int node, const char *prop_name, |
276 | 278 | uint64_t default_val) |