mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
crystalhd: add kernel 3.8 patch
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
86ecc05c81
commit
ec111e33a5
@ -0,0 +1,87 @@
|
|||||||
|
diff -Naur crystalhd-3cb6786/driver/linux/crystalhd_cmds.c crystalhd-3cb6786.patch/driver/linux/crystalhd_cmds.c
|
||||||
|
--- crystalhd-3cb6786/driver/linux/crystalhd_cmds.c 2012-12-08 03:31:38.000000000 +0100
|
||||||
|
+++ crystalhd-3cb6786.patch/driver/linux/crystalhd_cmds.c 2013-03-27 01:52:06.093400949 +0100
|
||||||
|
@@ -1093,7 +1093,7 @@
|
||||||
|
*
|
||||||
|
* Called at the time of driver load.
|
||||||
|
*/
|
||||||
|
-BC_STATUS __devinit crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
|
||||||
|
+BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
|
||||||
|
struct crystalhd_adp *adp)
|
||||||
|
{
|
||||||
|
struct device *dev = &adp->pdev->dev;
|
||||||
|
@@ -1136,7 +1136,7 @@
|
||||||
|
*
|
||||||
|
* Called at the time of driver un-load.
|
||||||
|
*/
|
||||||
|
-BC_STATUS __devexit crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx)
|
||||||
|
+BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx)
|
||||||
|
{
|
||||||
|
dev_dbg(chddev(), "Deleting Command context..\n");
|
||||||
|
|
||||||
|
diff -Naur crystalhd-3cb6786/driver/linux/crystalhd_lnx.c crystalhd-3cb6786.patch/driver/linux/crystalhd_lnx.c
|
||||||
|
--- crystalhd-3cb6786/driver/linux/crystalhd_lnx.c 2012-12-08 03:31:38.000000000 +0100
|
||||||
|
+++ crystalhd-3cb6786.patch/driver/linux/crystalhd_lnx.c 2013-03-27 01:51:47.768460170 +0100
|
||||||
|
@@ -431,7 +431,7 @@
|
||||||
|
.llseek = noop_llseek,
|
||||||
|
};
|
||||||
|
|
||||||
|
-static int __devinit chd_dec_init_chdev(struct crystalhd_adp *adp)
|
||||||
|
+static int chd_dec_init_chdev(struct crystalhd_adp *adp)
|
||||||
|
{
|
||||||
|
struct device *xdev = &adp->pdev->dev;
|
||||||
|
struct device *dev;
|
||||||
|
@@ -498,7 +498,7 @@
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __devexit chd_dec_release_chdev(struct crystalhd_adp *adp)
|
||||||
|
+static void chd_dec_release_chdev(struct crystalhd_adp *adp)
|
||||||
|
{
|
||||||
|
crystalhd_ioctl_data *temp = NULL;
|
||||||
|
if (!adp)
|
||||||
|
@@ -523,7 +523,7 @@
|
||||||
|
/*crystalhd_delete_elem_pool(adp); */
|
||||||
|
}
|
||||||
|
|
||||||
|
-static int __devinit chd_pci_reserve_mem(struct crystalhd_adp *pinfo)
|
||||||
|
+static int chd_pci_reserve_mem(struct crystalhd_adp *pinfo)
|
||||||
|
{
|
||||||
|
struct device *dev = &pinfo->pdev->dev;
|
||||||
|
int rc;
|
||||||
|
@@ -582,7 +582,7 @@
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __devexit chd_pci_release_mem(struct crystalhd_adp *pinfo)
|
||||||
|
+static void chd_pci_release_mem(struct crystalhd_adp *pinfo)
|
||||||
|
{
|
||||||
|
if (!pinfo)
|
||||||
|
return;
|
||||||
|
@@ -597,7 +597,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-static void __devexit chd_dec_pci_remove(struct pci_dev *pdev)
|
||||||
|
+static void chd_dec_pci_remove(struct pci_dev *pdev)
|
||||||
|
{
|
||||||
|
struct crystalhd_adp *pinfo;
|
||||||
|
BC_STATUS sts = BC_STS_SUCCESS;
|
||||||
|
@@ -625,7 +625,7 @@
|
||||||
|
g_adp_info = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static int __devinit chd_dec_pci_probe(struct pci_dev *pdev,
|
||||||
|
+static int chd_dec_pci_probe(struct pci_dev *pdev,
|
||||||
|
const struct pci_device_id *entry)
|
||||||
|
{
|
||||||
|
struct device *dev = &pdev->dev;
|
||||||
|
@@ -815,7 +815,7 @@
|
||||||
|
static struct pci_driver bc_chd_driver = {
|
||||||
|
.name = "crystalhd",
|
||||||
|
.probe = chd_dec_pci_probe,
|
||||||
|
- .remove = __devexit_p(chd_dec_pci_remove),
|
||||||
|
+ .remove = chd_dec_pci_remove,
|
||||||
|
.id_table = chd_dec_pci_id_table,
|
||||||
|
.suspend = chd_dec_pci_suspend,
|
||||||
|
.resume = chd_dec_pci_resume
|
Loading…
x
Reference in New Issue
Block a user