Merge tag 'char-misc-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc and other driver updates from Greg KH: "Here is the big set of char/misc and other driver subsystem changes for 6.8-rc1. Other than lots of binder driver changes (as you can see by the merge conflicts) included in here are: - lots of iio driver updates and additions - spmi driver updates - eeprom driver updates - firmware driver updates - ocxl driver updates - mhi driver updates - w1 driver updates - nvmem driver updates - coresight driver updates - platform driver remove callback api changes - tags.sh script updates - bus_type constant marking cleanups - lots of other small driver updates All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (341 commits) android: removed duplicate linux/errno uio: Fix use-after-free in uio_open drivers: soc: xilinx: add check for platform firmware: xilinx: Export function to use in other module scripts/tags.sh: remove find_sources scripts/tags.sh: use -n to test archinclude scripts/tags.sh: add local annotation scripts/tags.sh: use more portable -path instead of -wholename scripts/tags.sh: Update comment (addition of gtags) firmware: zynqmp: Convert to platform remove callback returning void firmware: turris-mox-rwtm: Convert to platform remove callback returning void firmware: stratix10-svc: Convert to platform remove callback returning void firmware: stratix10-rsu: Convert to platform remove callback returning void firmware: raspberrypi: Convert to platform remove callback returning void firmware: qemu_fw_cfg: Convert to platform remove callback returning void firmware: mtk-adsp-ipc: Convert to platform remove callback returning void firmware: imx-dsp: Convert to platform remove callback returning void firmware: coreboot_table: Convert to platform remove callback returning void firmware: arm_scpi: Convert to platform remove callback returning void firmware: arm_scmi: Convert to platform remove callback returning void ...
This commit is contained in:
@ -147,20 +147,18 @@ static int alt_fpga_bridge_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int alt_fpga_bridge_remove(struct platform_device *pdev)
|
||||
static void alt_fpga_bridge_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_bridge *br = platform_get_drvdata(pdev);
|
||||
|
||||
fpga_bridge_unregister(br);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
MODULE_DEVICE_TABLE(of, altera_fpga_of_match);
|
||||
|
||||
static struct platform_driver altera_fpga_driver = {
|
||||
.probe = alt_fpga_bridge_probe,
|
||||
.remove = alt_fpga_bridge_remove,
|
||||
.remove_new = alt_fpga_bridge_remove,
|
||||
.driver = {
|
||||
.name = "altera_fpga2sdram_bridge",
|
||||
.of_match_table = of_match_ptr(altera_fpga_of_match),
|
||||
|
@ -253,18 +253,16 @@ static int altera_freeze_br_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int altera_freeze_br_remove(struct platform_device *pdev)
|
||||
static void altera_freeze_br_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_bridge *br = platform_get_drvdata(pdev);
|
||||
|
||||
fpga_bridge_unregister(br);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver altera_freeze_br_driver = {
|
||||
.probe = altera_freeze_br_probe,
|
||||
.remove = altera_freeze_br_remove,
|
||||
.remove_new = altera_freeze_br_remove,
|
||||
.driver = {
|
||||
.name = "altera_freeze_br",
|
||||
.of_match_table = altera_freeze_br_of_match,
|
||||
|
@ -191,7 +191,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int alt_fpga_bridge_remove(struct platform_device *pdev)
|
||||
static void alt_fpga_bridge_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_bridge *bridge = platform_get_drvdata(pdev);
|
||||
struct altera_hps2fpga_data *priv = bridge->priv;
|
||||
@ -199,15 +199,13 @@ static int alt_fpga_bridge_remove(struct platform_device *pdev)
|
||||
fpga_bridge_unregister(bridge);
|
||||
|
||||
clk_disable_unprepare(priv->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
MODULE_DEVICE_TABLE(of, altera_fpga_of_match);
|
||||
|
||||
static struct platform_driver alt_fpga_bridge_driver = {
|
||||
.probe = alt_fpga_bridge_probe,
|
||||
.remove = alt_fpga_bridge_remove,
|
||||
.remove_new = alt_fpga_bridge_remove,
|
||||
.driver = {
|
||||
.name = "altera_hps2fpga_bridge",
|
||||
.of_match_table = of_match_ptr(altera_fpga_of_match),
|
||||
|
@ -932,15 +932,13 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int afu_remove(struct platform_device *pdev)
|
||||
static void afu_remove(struct platform_device *pdev)
|
||||
{
|
||||
dev_dbg(&pdev->dev, "%s\n", __func__);
|
||||
|
||||
dfl_fpga_dev_ops_unregister(pdev);
|
||||
dfl_fpga_dev_feature_uinit(pdev);
|
||||
afu_dev_destroy(pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct attribute_group *afu_dev_groups[] = {
|
||||
@ -956,7 +954,7 @@ static struct platform_driver afu_driver = {
|
||||
.dev_groups = afu_dev_groups,
|
||||
},
|
||||
.probe = afu_probe,
|
||||
.remove = afu_remove,
|
||||
.remove_new = afu_remove,
|
||||
};
|
||||
|
||||
static int __init afu_init(void)
|
||||
|
@ -78,7 +78,7 @@ static int fme_br_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fme_br_remove(struct platform_device *pdev)
|
||||
static void fme_br_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_bridge *br = platform_get_drvdata(pdev);
|
||||
struct fme_br_priv *priv = br->priv;
|
||||
@ -89,8 +89,6 @@ static int fme_br_remove(struct platform_device *pdev)
|
||||
put_device(&priv->port_pdev->dev);
|
||||
if (priv->port_ops)
|
||||
dfl_fpga_port_ops_put(priv->port_ops);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver fme_br_driver = {
|
||||
@ -98,7 +96,7 @@ static struct platform_driver fme_br_driver = {
|
||||
.name = DFL_FPGA_FME_BRIDGE,
|
||||
},
|
||||
.probe = fme_br_probe,
|
||||
.remove = fme_br_remove,
|
||||
.remove_new = fme_br_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fme_br_driver);
|
||||
|
@ -730,13 +730,11 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fme_remove(struct platform_device *pdev)
|
||||
static void fme_remove(struct platform_device *pdev)
|
||||
{
|
||||
dfl_fpga_dev_ops_unregister(pdev);
|
||||
dfl_fpga_dev_feature_uinit(pdev);
|
||||
fme_dev_destroy(pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct attribute_group *fme_dev_groups[] = {
|
||||
@ -751,7 +749,7 @@ static struct platform_driver fme_driver = {
|
||||
.dev_groups = fme_dev_groups,
|
||||
},
|
||||
.probe = fme_probe,
|
||||
.remove = fme_remove,
|
||||
.remove_new = fme_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fme_driver);
|
||||
|
@ -61,15 +61,13 @@ eprobe_mgr_put:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int fme_region_remove(struct platform_device *pdev)
|
||||
static void fme_region_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_region *region = platform_get_drvdata(pdev);
|
||||
struct fpga_manager *mgr = region->mgr;
|
||||
|
||||
fpga_region_unregister(region);
|
||||
fpga_mgr_put(mgr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver fme_region_driver = {
|
||||
@ -77,7 +75,7 @@ static struct platform_driver fme_region_driver = {
|
||||
.name = DFL_FPGA_FME_REGION,
|
||||
},
|
||||
.probe = fme_region_probe,
|
||||
.remove = fme_region_remove,
|
||||
.remove_new = fme_region_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fme_region_driver);
|
||||
|
@ -2008,8 +2008,8 @@ long dfl_feature_ioctl_set_irq(struct platform_device *pdev,
|
||||
(hdr.start + hdr.count < hdr.start))
|
||||
return -EINVAL;
|
||||
|
||||
fds = memdup_user((void __user *)(arg + sizeof(hdr)),
|
||||
array_size(hdr.count, sizeof(s32)));
|
||||
fds = memdup_array_user((void __user *)(arg + sizeof(hdr)),
|
||||
hdr.count, sizeof(s32));
|
||||
if (IS_ERR(fds))
|
||||
return PTR_ERR(fds);
|
||||
|
||||
|
@ -730,15 +730,13 @@ fw_name_fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int m10bmc_sec_remove(struct platform_device *pdev)
|
||||
static void m10bmc_sec_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct m10bmc_sec *sec = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
firmware_upload_unregister(sec->fwl);
|
||||
kfree(sec->fw_name);
|
||||
xa_erase(&fw_upload_xa, sec->fw_name_id);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct platform_device_id intel_m10bmc_sec_ids[] = {
|
||||
@ -760,7 +758,7 @@ MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);
|
||||
|
||||
static struct platform_driver intel_m10bmc_sec_driver = {
|
||||
.probe = m10bmc_sec_probe,
|
||||
.remove = m10bmc_sec_remove,
|
||||
.remove_new = m10bmc_sec_remove,
|
||||
.driver = {
|
||||
.name = "intel-m10bmc-sec-update",
|
||||
.dev_groups = m10bmc_sec_attr_groups,
|
||||
|
@ -425,20 +425,18 @@ eprobe_mgr_put:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int of_fpga_region_remove(struct platform_device *pdev)
|
||||
static void of_fpga_region_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_region *region = platform_get_drvdata(pdev);
|
||||
struct fpga_manager *mgr = region->mgr;
|
||||
|
||||
fpga_region_unregister(region);
|
||||
fpga_mgr_put(mgr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver of_fpga_region_driver = {
|
||||
.probe = of_fpga_region_probe,
|
||||
.remove = of_fpga_region_remove,
|
||||
.remove_new = of_fpga_region_remove,
|
||||
.driver = {
|
||||
.name = "of-fpga-region",
|
||||
.of_match_table = of_match_ptr(fpga_region_of_match),
|
||||
|
@ -517,15 +517,13 @@ static int socfpga_a10_fpga_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int socfpga_a10_fpga_remove(struct platform_device *pdev)
|
||||
static void socfpga_a10_fpga_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_manager *mgr = platform_get_drvdata(pdev);
|
||||
struct a10_fpga_priv *priv = mgr->priv;
|
||||
|
||||
fpga_mgr_unregister(mgr);
|
||||
clk_disable_unprepare(priv->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id socfpga_a10_fpga_of_match[] = {
|
||||
@ -537,7 +535,7 @@ MODULE_DEVICE_TABLE(of, socfpga_a10_fpga_of_match);
|
||||
|
||||
static struct platform_driver socfpga_a10_fpga_driver = {
|
||||
.probe = socfpga_a10_fpga_probe,
|
||||
.remove = socfpga_a10_fpga_remove,
|
||||
.remove_new = socfpga_a10_fpga_remove,
|
||||
.driver = {
|
||||
.name = "socfpga_a10_fpga_manager",
|
||||
.of_match_table = socfpga_a10_fpga_of_match,
|
||||
|
@ -436,15 +436,13 @@ probe_err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int s10_remove(struct platform_device *pdev)
|
||||
static void s10_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_manager *mgr = platform_get_drvdata(pdev);
|
||||
struct s10_priv *priv = mgr->priv;
|
||||
|
||||
fpga_mgr_unregister(mgr);
|
||||
stratix10_svc_free_channel(priv->chan);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id s10_of_match[] = {
|
||||
@ -457,7 +455,7 @@ MODULE_DEVICE_TABLE(of, s10_of_match);
|
||||
|
||||
static struct platform_driver s10_driver = {
|
||||
.probe = s10_probe,
|
||||
.remove = s10_remove,
|
||||
.remove_new = s10_remove,
|
||||
.driver = {
|
||||
.name = "Stratix10 SoC FPGA manager",
|
||||
.of_match_table = of_match_ptr(s10_of_match),
|
||||
|
@ -150,7 +150,7 @@ err_clk:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int xlnx_pr_decoupler_remove(struct platform_device *pdev)
|
||||
static void xlnx_pr_decoupler_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fpga_bridge *bridge = platform_get_drvdata(pdev);
|
||||
struct xlnx_pr_decoupler_data *p = bridge->priv;
|
||||
@ -158,13 +158,11 @@ static int xlnx_pr_decoupler_remove(struct platform_device *pdev)
|
||||
fpga_bridge_unregister(bridge);
|
||||
|
||||
clk_unprepare(p->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver xlnx_pr_decoupler_driver = {
|
||||
.probe = xlnx_pr_decoupler_probe,
|
||||
.remove = xlnx_pr_decoupler_remove,
|
||||
.remove_new = xlnx_pr_decoupler_remove,
|
||||
.driver = {
|
||||
.name = "xlnx_pr_decoupler",
|
||||
.of_match_table = xlnx_pr_decoupler_of_match,
|
||||
|
@ -618,7 +618,7 @@ static int zynq_fpga_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int zynq_fpga_remove(struct platform_device *pdev)
|
||||
static void zynq_fpga_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct zynq_fpga_priv *priv;
|
||||
struct fpga_manager *mgr;
|
||||
@ -629,8 +629,6 @@ static int zynq_fpga_remove(struct platform_device *pdev)
|
||||
fpga_mgr_unregister(mgr);
|
||||
|
||||
clk_unprepare(priv->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@ -644,7 +642,7 @@ MODULE_DEVICE_TABLE(of, zynq_fpga_of_match);
|
||||
|
||||
static struct platform_driver zynq_fpga_driver = {
|
||||
.probe = zynq_fpga_probe,
|
||||
.remove = zynq_fpga_remove,
|
||||
.remove_new = zynq_fpga_remove,
|
||||
.driver = {
|
||||
.name = "zynq_fpga_manager",
|
||||
.of_match_table = of_match_ptr(zynq_fpga_of_match),
|
||||
|
Reference in New Issue
Block a user