diff options
Diffstat (limited to 'drivers/staging/android/ion/ion_system_heap.c')
-rw-r--r-- | drivers/staging/android/ion/ion_system_heap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 8d8011998855..53f70cf02b4b 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c | |||
@@ -266,7 +266,7 @@ free_heap: | |||
266 | return ERR_PTR(-ENOMEM); | 266 | return ERR_PTR(-ENOMEM); |
267 | } | 267 | } |
268 | 268 | ||
269 | static int ion_system_heap_create(void) | 269 | int ion_system_heap_create(void) |
270 | { | 270 | { |
271 | struct ion_heap *heap; | 271 | struct ion_heap *heap; |
272 | 272 | ||
@@ -279,7 +279,6 @@ static int ion_system_heap_create(void) | |||
279 | 279 | ||
280 | return 0; | 280 | return 0; |
281 | } | 281 | } |
282 | device_initcall(ion_system_heap_create); | ||
283 | 282 | ||
284 | static int ion_system_contig_heap_allocate(struct ion_heap *heap, | 283 | static int ion_system_contig_heap_allocate(struct ion_heap *heap, |
285 | struct ion_buffer *buffer, | 284 | struct ion_buffer *buffer, |
@@ -362,7 +361,7 @@ static struct ion_heap *__ion_system_contig_heap_create(void) | |||
362 | return heap; | 361 | return heap; |
363 | } | 362 | } |
364 | 363 | ||
365 | static int ion_system_contig_heap_create(void) | 364 | int ion_system_contig_heap_create(void) |
366 | { | 365 | { |
367 | struct ion_heap *heap; | 366 | struct ion_heap *heap; |
368 | 367 | ||
@@ -374,4 +373,8 @@ static int ion_system_contig_heap_create(void) | |||
374 | 373 | ||
375 | return 0; | 374 | return 0; |
376 | } | 375 | } |
376 | |||
377 | #ifndef CONFIG_ION_MODULE | ||
377 | device_initcall(ion_system_contig_heap_create); | 378 | device_initcall(ion_system_contig_heap_create); |
379 | device_initcall(ion_system_heap_create); | ||
380 | #endif | ||