• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision9cc6fa255bc71b007ffc212b1b9332c44db5d59f (tree)
l'heure2022-08-01 18:40:58
AuteurYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Message de Log

fdtdec.c: fix non-pci system.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Change Summary

Modification

--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -239,6 +239,7 @@ int fdtdec_get_pci_vendev(const void *blob, int node, u16 *vendor, u16 *device)
239239 return -ENOENT;
240240 }
241241
242+#if defined(CONFIG_PCI)
242243 int fdtdec_get_pci_bar32(const struct udevice *dev, struct fdt_pci_addr *addr,
243244 u32 *bar)
244245 {
@@ -271,6 +272,7 @@ int fdtdec_get_pci_bus_range(const void *blob, int node,
271272
272273 return 0;
273274 }
275+#endif
274276
275277 uint64_t fdtdec_get_uint64(const void *blob, int node, const char *prop_name,
276278 uint64_t default_val)