summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpieuchot@nolizard.org>2013-07-08 17:48:52 +0200
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:45:09 +1000
commit18f1f94878fa3e63cf9bdc33821e320ecc20c7d2 (patch)
tree3ce1bf1dfc9bcf2bc20e2f345ef506e0a211165f
parent89f880c4f958010912de677168e4a4f48c9c65e9 (diff)
add inline version of of_machine_is_compatible()
-rw-r--r--sys/dev/pci/drm/drmP.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index ce40f491378..dd2cd02ca0f 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -251,6 +251,15 @@ IS_ERR_OR_NULL(const void *ptr)
#define be32_to_cpup(x) betoh32(*x)
+#ifdef __macppc__
+static __inline int
+of_machine_is_compatible(const char *model)
+{
+ extern char *hw_prod;
+ return (strcmp(model, hw_prod) == 0);
+}
+#endif
+
static inline unsigned long
roundup_pow_of_two(unsigned long x)
{