From f70575805708cabdedea7498aaa3f710fde4d920 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 03:29:01 +0000
Subject: [PATCH] add lvds1024*800

---
 kernel/drivers/mailbox/bcm2835-mailbox.c |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/kernel/drivers/mailbox/bcm2835-mailbox.c b/kernel/drivers/mailbox/bcm2835-mailbox.c
index e92bbc5..39761d1 100644
--- a/kernel/drivers/mailbox/bcm2835-mailbox.c
+++ b/kernel/drivers/mailbox/bcm2835-mailbox.c
@@ -1,14 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  *  Copyright (C) 2010,2015 Broadcom
  *  Copyright (C) 2013-2014 Lubomir Rintel
  *  Copyright (C) 2013 Craig McGeachie
- *
- * 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 device provides a mechanism for writing to the mailboxes,
- * that are shared between the ARM and the VideoCore processor
  *
  * Parts of the driver are based on:
  *  - arch/arm/mach-bcm2708/vcio.c file written by Gray Girling that was
@@ -178,7 +172,7 @@
 	if (!mbox->controller.chans)
 		return -ENOMEM;
 
-	ret = mbox_controller_register(&mbox->controller);
+	ret = devm_mbox_controller_register(dev, &mbox->controller);
 	if (ret)
 		return ret;
 
@@ -186,13 +180,6 @@
 	dev_info(dev, "mailbox enabled\n");
 
 	return ret;
-}
-
-static int bcm2835_mbox_remove(struct platform_device *pdev)
-{
-	struct bcm2835_mbox *mbox = platform_get_drvdata(pdev);
-	mbox_controller_unregister(&mbox->controller);
-	return 0;
 }
 
 static const struct of_device_id bcm2835_mbox_of_match[] = {
@@ -207,7 +194,6 @@
 		.of_match_table = bcm2835_mbox_of_match,
 	},
 	.probe		= bcm2835_mbox_probe,
-	.remove		= bcm2835_mbox_remove,
 };
 module_platform_driver(bcm2835_mbox_driver);
 

--
Gitblit v1.6.2