aboutsummaryrefslogtreecommitdiff
path: root/include/linux/greybus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/greybus.h')
-rw-r--r--include/linux/greybus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/greybus.h b/include/linux/greybus.h
index 634c9511cf78..4d58e27ceaf6 100644
--- a/include/linux/greybus.h
+++ b/include/linux/greybus.h
@@ -64,7 +64,7 @@ struct greybus_driver {
struct device_driver driver;
};
-#define to_greybus_driver(d) container_of(d, struct greybus_driver, driver)
+#define to_greybus_driver(d) container_of_const(d, struct greybus_driver, driver)
static inline void greybus_set_drvdata(struct gb_bundle *bundle, void *data)
{