7b645d51cc
wl_resource may become an opaque type in future so we should probably be using the accessors instead of directly prodding into the struct. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 8ab07725734b8b2151470cc44bb3f88798ac5538)