diff --git a/loopy/target/opencl/__init__.py b/loopy/target/opencl/__init__.py
index 8392a7a9169acb3e1b2e4eedb334d555e539d150..eebe6f5da0b81fa9b4c1ac7b4cda0ba8b1ac283e 100644
--- a/loopy/target/opencl/__init__.py
+++ b/loopy/target/opencl/__init__.py
@@ -215,10 +215,10 @@ class OpenCLTarget(CTarget):
     @memoize_method
     def get_dtype_registry(self):
         from loopy.target.c.compyte.dtypes import (DTypeRegistry,
-                fill_registry_with_opencl_types)
+                fill_registry_with_opencl_c_types)
 
         result = DTypeRegistry()
-        fill_registry_with_opencl_types()
+        fill_registry_with_opencl_c_types(result)
 
         # no complex number support--needs PyOpenCLTarget