drm/i915: intel_ring_initialized() must be simple and inline
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_ringbuffer.h
index 5d1eb206151ddb9451d698cbb61166bece5436c8..49574ffe54bcf8420d33290a89e67f70d8d7b945 100644 (file)
@@ -350,7 +350,11 @@ struct  intel_engine_cs {
        u32 (*get_cmd_length_mask)(u32 cmd_header);
 };
 
-bool intel_ring_initialized(struct intel_engine_cs *ring);
+static inline bool
+intel_ring_initialized(struct intel_engine_cs *ring)
+{
+       return ring->dev != NULL;
+}
 
 static inline unsigned
 intel_ring_flag(struct intel_engine_cs *ring)
This page took 0.027062 seconds and 5 git commands to generate.