aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@canonical.com>2011-09-23 13:31:27 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:24 -0400
commitb42764311526ae37cb22d215aa0da69e87c3b74a (patch)
treed4c96879f9356b1fc0043cc14f533c14bad3e6d1
parentcc4a0ce0e260f9dc4ada43f3720b87ab77604365 (diff)
DRM: OMAP: Fixing PVR kernel module name
We currently expect it to be "pvrsrvkm" and not "omap_gpu_pvr", so change it to load the correct driver. Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
-rw-r--r--arch/arm/mach-omap2/devices.c2
-rw-r--r--drivers/staging/omapdrm/omap_drv.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 87b695b807f..3141170d194 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -729,7 +729,7 @@ static void omap_init_gpu(void)
729 char oh_name[max_omap_drm_hwmod_name_len]; 729 char oh_name[max_omap_drm_hwmod_name_len];
730 int l; 730 int l;
731 struct gpu_platform_data *pdata; 731 struct gpu_platform_data *pdata;
732 char *name = "omapdrm_pvr"; 732 char *name = "pvrsrvkm";
733 733
734 l = snprintf(oh_name, max_omap_drm_hwmod_name_len, 734 l = snprintf(oh_name, max_omap_drm_hwmod_name_len,
735 "gpu"); 735 "gpu");
diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c
index b569ae121da..93810cabac0 100644
--- a/drivers/staging/omapdrm/omap_drv.c
+++ b/drivers/staging/omapdrm/omap_drv.c
@@ -24,6 +24,7 @@
24#include "drm_fb_helper.h" 24#include "drm_fb_helper.h"
25 25
26#define DRIVER_NAME MODULE_NAME 26#define DRIVER_NAME MODULE_NAME
27#define PVR_DRIVER_NAME "pvrsrvkm"
27#define DRIVER_DESC "OMAP DRM" 28#define DRIVER_DESC "OMAP DRM"
28#define DRIVER_DATE "20110403" 29#define DRIVER_DATE "20110403"
29#define DRIVER_MAJOR 1 30#define DRIVER_MAJOR 1
@@ -457,7 +458,7 @@ static int dev_open(struct drm_device *dev, struct drm_file *file)
457 DBG("open: dev=%p, file=%p", dev, file); 458 DBG("open: dev=%p, file=%p", dev, file);
458 459
459 list_for_each_entry(plugin, &plugin_list, list) { 460 list_for_each_entry(plugin, &plugin_list, list) {
460 if (!strcmp(DRIVER_NAME "_pvr", plugin->name)) { 461 if (!strcmp(PVR_DRIVER_NAME, plugin->name)) {
461 found_pvr = true; 462 found_pvr = true;
462 break; 463 break;
463 } 464 }
@@ -465,7 +466,7 @@ static int dev_open(struct drm_device *dev, struct drm_file *file)
465 466
466 if (!found_pvr) { 467 if (!found_pvr) {
467 DBG("open: PVR submodule not loaded.. let's try now"); 468 DBG("open: PVR submodule not loaded.. let's try now");
468 request_module(DRIVER_NAME "_pvr"); 469 request_module(PVR_DRIVER_NAME);
469 } 470 }
470 471
471 list_for_each_entry(plugin, &plugin_list, list) { 472 list_for_each_entry(plugin, &plugin_list, list) {