cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/mach-omap2/drm.c

/*
 * DRM/KMS device registration for TI OMAP platforms
 *
 * Copyright (C) 2012 Texas Instruments
 * Author: Rob Clark <rob.clark@linaro.org>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/platform_data/omap_drm.h>

#include "soc.h"
#include "display.h"

#if IS_ENABLED(CONFIG_DRM_OMAP)


static struct omap_drm_platform_data platform_data;


static struct platform_device omap_drm_device = {
	.dev = {
		.coherent_dma_mask = DMA_BIT_MASK(32),
		.platform_data = &platform_data,
        },
	.name = "omapdrm",
	.id = 0,
};


int __init omap_init_drm(void) { platform_data.omaprev = GET_OMAP_TYPE; return platform_device_register(&omap_drm_device); }

Contributors

PersonTokensPropCommitsCommitProp
Andy Gross1571.43%133.33%
Rob Clark628.57%266.67%
Total21100.00%3100.00%

#else
int __init omap_init_drm(void) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Archit Taneja1090.91%150.00%
Andy Gross19.09%150.00%
Total11100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Andy Gross7466.67%120.00%
Rob Clark2118.92%240.00%
Archit Taneja1513.51%120.00%
Javier Martinez Canillas10.90%120.00%
Total111100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.