Merge tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core update from Greg KH: "Here's the set of driver core patches for 3.19-rc1. They are dominated by the removal of the .owner field in platform drivers. They touch a lot of files, but they are "simple" changes, just removing a line in a structure. Other than that, a few minor driver core and debugfs changes. There are some ath9k patches coming in through this tree that have been acked by the wireless maintainers as they relied on the debugfs changes. Everything has been in linux-next for a while" * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits) Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries" fs: debugfs: add forward declaration for struct device type firmware class: Deletion of an unnecessary check before the function call "vunmap" firmware loader: fix hung task warning dump devcoredump: provide a one-way disable function device: Add dev_<level>_once variants ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries ath: use seq_file api for ath9k debugfs files debugfs: add helper function to create device related seq_file drivers/base: cacheinfo: remove noisy error boot message Revert "core: platform: add warning if driver has no owner" drivers: base: support cpu cache information interface to userspace via sysfs drivers: base: add cpu_device_create to support per-cpu devices topology: replace custom attribute macros with standard DEVICE_ATTR* cpumask: factor out show_cpumap into separate helper function driver core: Fix unbalanced device reference in drivers_probe driver core: fix race with userland in device_add() sysfs/kernfs: make read requests on pre-alloc files use the buffer. sysfs/kernfs: allow attributes to request write buffer be pre-allocated. fs: sysfs: return EGBIG on write if offset is larger than file size ...
This commit is contained in:
@@ -1056,7 +1056,6 @@ static struct platform_driver sa1111_device_driver = {
|
||||
.resume = sa1111_resume,
|
||||
.driver = {
|
||||
.name = "sa1111",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -91,7 +91,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev)
|
||||
static struct platform_driver davinci_cpuidle_driver = {
|
||||
.driver = {
|
||||
.name = "cpuidle-davinci",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -148,7 +148,6 @@ static int __exit davinci_pm_remove(struct platform_device *pdev)
|
||||
static struct platform_driver davinci_pm_driver = {
|
||||
.driver = {
|
||||
.name = "pm-davinci",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.remove = __exit_p(davinci_pm_remove),
|
||||
};
|
||||
|
||||
@@ -76,7 +76,6 @@ static struct of_device_id imx_mmdc_dt_ids[] = {
|
||||
static struct platform_driver imx_mmdc_driver = {
|
||||
.driver = {
|
||||
.name = "imx-mmdc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = imx_mmdc_dt_ids,
|
||||
},
|
||||
.probe = imx_mmdc_probe,
|
||||
|
||||
@@ -169,7 +169,6 @@ static struct platform_driver msm_clock_pcom_driver = {
|
||||
.probe = msm_clock_pcom_probe,
|
||||
.driver = {
|
||||
.name = "msm-clock-pcom",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(msm_clock_pcom_driver);
|
||||
|
||||
@@ -1019,7 +1019,6 @@ static struct platform_driver msm_smd_driver = {
|
||||
.probe = msm_smd_probe,
|
||||
.driver = {
|
||||
.name = MODULE_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -135,7 +135,6 @@ static struct platform_driver sirfsoc_memc_driver = {
|
||||
.probe = sirfsoc_memc_probe,
|
||||
.driver = {
|
||||
.name = "sirfsoc-memc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = memc_ids,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -114,7 +114,6 @@ static struct platform_driver sirfsoc_rstc_driver = {
|
||||
.probe = sirfsoc_rstc_probe,
|
||||
.driver = {
|
||||
.name = "sirfsoc_rstc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = rstc_ids,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -123,7 +123,6 @@ static struct platform_driver sirfsoc_rtciobrg_driver = {
|
||||
.probe = sirfsoc_rtciobrg_probe,
|
||||
.driver = {
|
||||
.name = "sirfsoc-rtciobrg",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = rtciobrg_ids,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -379,7 +379,6 @@ static int pxa3xx_u2d_remove(struct platform_device *pdev)
|
||||
static struct platform_driver pxa3xx_u2d_ulpi_driver = {
|
||||
.driver = {
|
||||
.name = "pxa3xx-u2d",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = pxa3xx_u2d_probe,
|
||||
.remove = pxa3xx_u2d_remove,
|
||||
|
||||
@@ -129,7 +129,6 @@ static struct platform_driver tosa_bt_driver = {
|
||||
|
||||
.driver = {
|
||||
.name = "tosa-bt",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -171,7 +171,6 @@ static struct platform_driver osiris_dvs_driver = {
|
||||
.remove = osiris_dvs_remove,
|
||||
.driver = {
|
||||
.name = "osiris-dvs",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &osiris_dvs_pm,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -423,7 +423,6 @@ static struct platform_driver neponset_device_driver = {
|
||||
.remove = neponset_remove,
|
||||
.driver = {
|
||||
.name = "neponset",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = PM_OPS,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -116,7 +116,6 @@ static const struct of_device_id s365_board_match[] = {
|
||||
static struct platform_driver s365_board_driver = {
|
||||
.driver = {
|
||||
.name = "s365-board",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = s365_board_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -268,7 +268,6 @@ static struct platform_driver pxa_ssp_driver = {
|
||||
.probe = pxa_ssp_probe,
|
||||
.remove = pxa_ssp_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "pxa2xx-ssp",
|
||||
.of_match_table = of_match_ptr(pxa_ssp_of_ids),
|
||||
},
|
||||
|
||||
@@ -505,7 +505,6 @@ static struct platform_driver s3c_adc_driver = {
|
||||
.id_table = s3c_adc_driver_ids,
|
||||
.driver = {
|
||||
.name = "s3c-adc",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &adc_pm_ops,
|
||||
},
|
||||
.probe = s3c_adc_probe,
|
||||
|
||||
@@ -46,7 +46,6 @@ static struct platform_driver dcdc_driver = {
|
||||
.probe = dcdc_probe,
|
||||
.driver = {
|
||||
.name = "dcdc-xrx200",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = dcdc_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -261,7 +261,6 @@ static struct platform_driver dma_driver = {
|
||||
.probe = ltq_dma_init,
|
||||
.driver = {
|
||||
.name = "dma-xway",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = dma_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -193,7 +193,6 @@ static struct platform_driver dma_driver = {
|
||||
.probe = gptu_probe,
|
||||
.driver = {
|
||||
.name = "gptu-xway",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = gptu_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -106,7 +106,6 @@ static struct platform_driver xway_phy_driver = {
|
||||
.probe = xway_phy_fw_probe,
|
||||
.driver = {
|
||||
.name = "phy-xrx200",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = xway_phy_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -70,7 +70,6 @@ static struct platform_driver sead3_led_driver = {
|
||||
.remove = sead3_led_remove,
|
||||
.driver = {
|
||||
.name = DRVNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -380,7 +380,6 @@ static int sead3_i2c_platform_resume(struct platform_device *pdev)
|
||||
static struct platform_driver sead3_i2c_platform_driver = {
|
||||
.driver = {
|
||||
.name = "sead3-i2c",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = sead3_i2c_platform_probe,
|
||||
.remove = sead3_i2c_platform_remove,
|
||||
|
||||
@@ -505,7 +505,6 @@ static struct platform_driver alchemy_pcictl_driver = {
|
||||
.probe = alchemy_pci_probe,
|
||||
.driver = {
|
||||
.name = "alchemy-pci",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -403,7 +403,6 @@ static struct platform_driver ar71xx_pci_driver = {
|
||||
.probe = ar71xx_pci_probe,
|
||||
.driver = {
|
||||
.name = "ar71xx-pci",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -400,7 +400,6 @@ static struct platform_driver ar724x_pci_driver = {
|
||||
.probe = ar724x_pci_probe,
|
||||
.driver = {
|
||||
.name = "ar724x-pci",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -242,7 +242,6 @@ static struct platform_driver ltq_pci_driver = {
|
||||
.probe = ltq_pci_probe,
|
||||
.driver = {
|
||||
.name = "pci-xway",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ltq_pci_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -589,7 +589,6 @@ static struct platform_driver rt3883_pci_driver = {
|
||||
.probe = rt3883_pci_probe,
|
||||
.driver = {
|
||||
.name = "rt3883-pci",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(rt3883_pci_ids),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -173,7 +173,6 @@ static struct platform_driver rt_timer_driver = {
|
||||
.remove = rt_timer_remove,
|
||||
.driver = {
|
||||
.name = "rt-timer",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = rt_timer_match
|
||||
},
|
||||
};
|
||||
|
||||
@@ -245,7 +245,6 @@ static int __init rbtx4939_led_probe(struct platform_device *pdev)
|
||||
static struct platform_driver rbtx4939_led_driver = {
|
||||
.driver = {
|
||||
.name = "rbtx4939-led",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ static struct platform_driver of_pci_phb_driver = {
|
||||
.probe = of_pci_phb_probe,
|
||||
.driver = {
|
||||
.name = "of-pci",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_pci_phb_ids,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -782,7 +782,6 @@ static const struct of_device_id mpc52xx_gpt_match[] = {
|
||||
static struct platform_driver mpc52xx_gpt_driver = {
|
||||
.driver = {
|
||||
.name = "mpc52xx-gpt",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc52xx_gpt_match,
|
||||
},
|
||||
.probe = mpc52xx_gpt_probe,
|
||||
|
||||
@@ -572,7 +572,6 @@ static const struct of_device_id mpc52xx_lpbfifo_match[] = {
|
||||
static struct platform_driver mpc52xx_lpbfifo_driver = {
|
||||
.driver = {
|
||||
.name = "mpc52xx-lpbfifo",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc52xx_lpbfifo_match,
|
||||
},
|
||||
.probe = mpc52xx_lpbfifo_probe,
|
||||
|
||||
@@ -169,7 +169,6 @@ static const struct of_device_id ep8248e_mdio_match[] = {
|
||||
static struct platform_driver ep8248e_mdio_driver = {
|
||||
.driver = {
|
||||
.name = "ep8248e-mdio-bitbang",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ep8248e_mdio_match,
|
||||
},
|
||||
.probe = ep8248e_mdio_probe,
|
||||
|
||||
@@ -435,7 +435,6 @@ static const struct of_device_id pmc_match[] = {
|
||||
static struct platform_driver pmc_driver = {
|
||||
.driver = {
|
||||
.name = "mpc83xx-pmc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = pmc_match,
|
||||
},
|
||||
.probe = pmc_probe,
|
||||
|
||||
@@ -161,7 +161,6 @@ MODULE_DEVICE_TABLE(of, gpio_halt_match);
|
||||
static struct platform_driver gpio_halt_driver = {
|
||||
.driver = {
|
||||
.name = "gpio-halt",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = gpio_halt_match,
|
||||
},
|
||||
.probe = gpio_halt_probe,
|
||||
|
||||
@@ -437,7 +437,6 @@ static struct platform_driver axon_msi_driver = {
|
||||
.shutdown = axon_msi_shutdown,
|
||||
.driver = {
|
||||
.name = "axon-msi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = axon_msi_device_id,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -305,7 +305,6 @@ static struct platform_driver gpio_mdio_driver =
|
||||
.remove = gpio_mdio_remove,
|
||||
.driver = {
|
||||
.name = "gpio-mdio-bitbang",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = gpio_mdio_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -326,7 +326,6 @@ static struct platform_driver axon_ram_driver = {
|
||||
.remove = axon_ram_remove,
|
||||
.driver = {
|
||||
.name = AXON_RAM_MODULE_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = axon_ram_device_id,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -210,7 +210,6 @@ static const struct of_device_id mpc85xx_l2ctlr_of_match[] = {
|
||||
static struct platform_driver mpc85xx_l2ctlr_of_platform_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-l2ctlr",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpc85xx_l2ctlr_of_match,
|
||||
},
|
||||
.probe = mpc85xx_l2ctlr_of_probe,
|
||||
|
||||
@@ -577,7 +577,6 @@ static const struct of_device_id fsl_of_msi_ids[] = {
|
||||
static struct platform_driver fsl_of_msi_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-msi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fsl_of_msi_ids,
|
||||
},
|
||||
.probe = fsl_of_msi_probe,
|
||||
|
||||
@@ -80,7 +80,6 @@ static const struct of_device_id pmc_ids[] = {
|
||||
static struct platform_driver pmc_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-pmc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = pmc_ids,
|
||||
},
|
||||
.probe = pmc_probe,
|
||||
|
||||
@@ -777,7 +777,6 @@ static const struct of_device_id fsl_of_rio_rpn_ids[] = {
|
||||
static struct platform_driver fsl_of_rio_rpn_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-of-rio",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fsl_of_rio_rpn_ids,
|
||||
},
|
||||
.probe = fsl_of_rio_rpn_probe,
|
||||
|
||||
@@ -270,7 +270,6 @@ static const struct of_device_id mpic_msgr_ids[] = {
|
||||
static struct platform_driver mpic_msgr_driver = {
|
||||
.driver = {
|
||||
.name = "mpic-msgr",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mpic_msgr_ids,
|
||||
},
|
||||
.probe = mpic_msgr_probe,
|
||||
|
||||
@@ -210,7 +210,6 @@ static struct platform_driver pmi_of_platform_driver = {
|
||||
.remove = pmi_of_remove,
|
||||
.driver = {
|
||||
.name = "pmi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = pmi_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -197,7 +197,6 @@ static struct platform_driver hsta_msi_driver = {
|
||||
.probe = hsta_msi_probe,
|
||||
.driver = {
|
||||
.name = "hsta-msi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = hsta_msi_ids,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -269,7 +269,6 @@ static struct platform_driver ppc4xx_msi_driver = {
|
||||
.remove = ppc4xx_of_msi_remove,
|
||||
.driver = {
|
||||
.name = "ppc4xx-msi",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ppc4xx_msi_ids,
|
||||
},
|
||||
|
||||
|
||||
@@ -692,7 +692,6 @@ static const struct of_device_id qe_ids[] = {
|
||||
static struct platform_driver qe_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-qe",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = qe_ids,
|
||||
},
|
||||
.probe = qe_probe,
|
||||
|
||||
@@ -511,7 +511,6 @@ static const struct dev_pm_ops appldata_pm_ops = {
|
||||
static struct platform_driver appldata_pdrv = {
|
||||
.driver = {
|
||||
.name = "appldata",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &appldata_pm_ops,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -238,7 +238,6 @@ static const struct of_device_id ecpp_match[] = {
|
||||
static struct platform_driver ecpp_driver = {
|
||||
.driver = {
|
||||
.name = "ecpp",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ecpp_match,
|
||||
},
|
||||
.probe = ecpp_probe,
|
||||
|
||||
@@ -178,7 +178,6 @@ MODULE_DEVICE_TABLE(of, apc_match);
|
||||
static struct platform_driver apc_driver = {
|
||||
.driver = {
|
||||
.name = "apc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = apc_match,
|
||||
},
|
||||
.probe = apc_probe,
|
||||
|
||||
@@ -135,7 +135,6 @@ static struct platform_driver auxio_driver = {
|
||||
.probe = auxio_probe,
|
||||
.driver = {
|
||||
.name = "auxio",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = auxio_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -152,7 +152,6 @@ static struct platform_driver clock_board_driver = {
|
||||
.probe = clock_board_probe,
|
||||
.driver = {
|
||||
.name = "clock_board",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = clock_board_match,
|
||||
},
|
||||
};
|
||||
@@ -257,7 +256,6 @@ static struct platform_driver fhc_driver = {
|
||||
.probe = fhc_probe,
|
||||
.driver = {
|
||||
.name = "fhc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fhc_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -810,7 +810,6 @@ MODULE_DEVICE_TABLE(of, us3mc_match);
|
||||
static struct platform_driver us3mc_driver = {
|
||||
.driver = {
|
||||
.name = "us3mc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = us3mc_match,
|
||||
},
|
||||
.probe = us3mc_probe,
|
||||
|
||||
@@ -708,7 +708,6 @@ static struct of_device_id grpci1_of_match[] = {
|
||||
static struct platform_driver grpci1_of_driver = {
|
||||
.driver = {
|
||||
.name = "grpci1",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = grpci1_of_match,
|
||||
},
|
||||
.probe = grpci1_of_probe,
|
||||
|
||||
@@ -900,7 +900,6 @@ static struct of_device_id grpci2_of_match[] = {
|
||||
static struct platform_driver grpci2_of_driver = {
|
||||
.driver = {
|
||||
.name = "grpci2",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = grpci2_of_match,
|
||||
},
|
||||
.probe = grpci2_of_probe,
|
||||
|
||||
@@ -508,7 +508,6 @@ static const struct of_device_id fire_match[] = {
|
||||
static struct platform_driver fire_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fire_match,
|
||||
},
|
||||
.probe = fire_probe,
|
||||
|
||||
@@ -604,7 +604,6 @@ static const struct of_device_id psycho_match[] = {
|
||||
static struct platform_driver psycho_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = psycho_match,
|
||||
},
|
||||
.probe = psycho_probe,
|
||||
|
||||
@@ -600,7 +600,6 @@ static const struct of_device_id sabre_match[] = {
|
||||
static struct platform_driver sabre_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = sabre_match,
|
||||
},
|
||||
.probe = sabre_probe,
|
||||
|
||||
@@ -1495,7 +1495,6 @@ static const struct of_device_id schizo_match[] = {
|
||||
static struct platform_driver schizo_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = schizo_match,
|
||||
},
|
||||
.probe = schizo_probe,
|
||||
|
||||
@@ -1010,7 +1010,6 @@ static const struct of_device_id pci_sun4v_match[] = {
|
||||
static struct platform_driver pci_sun4v_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = pci_sun4v_match,
|
||||
},
|
||||
.probe = pci_sun4v_probe,
|
||||
|
||||
@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(of, pmc_match);
|
||||
static struct platform_driver pmc_driver = {
|
||||
.driver = {
|
||||
.name = "pmc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = pmc_match,
|
||||
},
|
||||
.probe = pmc_probe,
|
||||
|
||||
@@ -63,7 +63,6 @@ static struct platform_driver power_driver = {
|
||||
.probe = power_probe,
|
||||
.driver = {
|
||||
.name = "power",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = power_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -322,7 +322,6 @@ static struct platform_driver clock_driver = {
|
||||
.probe = clock_probe,
|
||||
.driver = {
|
||||
.name = "rtc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = clock_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -466,7 +466,6 @@ static struct platform_driver rtc_driver = {
|
||||
.probe = rtc_probe,
|
||||
.driver = {
|
||||
.name = "rtc",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = rtc_match,
|
||||
},
|
||||
};
|
||||
@@ -499,7 +498,6 @@ static struct platform_driver bq4802_driver = {
|
||||
.probe = bq4802_probe,
|
||||
.driver = {
|
||||
.name = "bq4802",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = bq4802_match,
|
||||
},
|
||||
};
|
||||
@@ -563,7 +561,6 @@ static struct platform_driver mostek_driver = {
|
||||
.probe = mostek_probe,
|
||||
.driver = {
|
||||
.name = "mostek",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mostek_match,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -130,10 +130,7 @@ static ssize_t _iommu_cpumask_show(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &iommu_cpumask);
|
||||
buf[n++] = '\n';
|
||||
buf[n] = '\0';
|
||||
return n;
|
||||
return cpumap_print_to_pagebuf(true, buf, &iommu_cpumask);
|
||||
}
|
||||
static DEVICE_ATTR(cpumask, S_IRUGO, _iommu_cpumask_show, NULL);
|
||||
|
||||
|
||||
@@ -219,7 +219,6 @@ static ssize_t amd_uncore_attr_show_cpumask(struct device *dev,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
int n;
|
||||
cpumask_t *active_mask;
|
||||
struct pmu *pmu = dev_get_drvdata(dev);
|
||||
|
||||
@@ -230,10 +229,7 @@ static ssize_t amd_uncore_attr_show_cpumask(struct device *dev,
|
||||
else
|
||||
return 0;
|
||||
|
||||
n = cpulist_scnprintf(buf, PAGE_SIZE - 2, active_mask);
|
||||
buf[n++] = '\n';
|
||||
buf[n] = '\0';
|
||||
return n;
|
||||
return cpumap_print_to_pagebuf(true, buf, active_mask);
|
||||
}
|
||||
static DEVICE_ATTR(cpumask, S_IRUGO, amd_uncore_attr_show_cpumask, NULL);
|
||||
|
||||
|
||||
@@ -365,11 +365,7 @@ static void rapl_pmu_event_read(struct perf_event *event)
|
||||
static ssize_t rapl_get_attr_cpumask(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &rapl_cpu_mask);
|
||||
|
||||
buf[n++] = '\n';
|
||||
buf[n] = '\0';
|
||||
return n;
|
||||
return cpumap_print_to_pagebuf(true, buf, &rapl_cpu_mask);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(cpumask, S_IRUGO, rapl_get_attr_cpumask, NULL);
|
||||
|
||||
@@ -647,11 +647,7 @@ static int uncore_pmu_event_init(struct perf_event *event)
|
||||
static ssize_t uncore_get_attr_cpumask(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &uncore_cpu_mask);
|
||||
|
||||
buf[n++] = '\n';
|
||||
buf[n] = '\0';
|
||||
return n;
|
||||
return cpumap_print_to_pagebuf(true, buf, &uncore_cpu_mask);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(cpumask, S_IRUGO, uncore_get_attr_cpumask, NULL);
|
||||
|
||||
@@ -86,7 +86,6 @@ static int iris_remove(struct platform_device *pdev)
|
||||
static struct platform_driver iris_driver = {
|
||||
.driver = {
|
||||
.name = "iris",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = iris_probe,
|
||||
.remove = iris_remove,
|
||||
|
||||
@@ -170,7 +170,6 @@ static int xo1_pm_remove(struct platform_device *pdev)
|
||||
static struct platform_driver cs5535_pms_driver = {
|
||||
.driver = {
|
||||
.name = "cs5535-pms",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = xo1_pm_probe,
|
||||
.remove = xo1_pm_remove,
|
||||
@@ -179,7 +178,6 @@ static struct platform_driver cs5535_pms_driver = {
|
||||
static struct platform_driver cs5535_acpi_driver = {
|
||||
.driver = {
|
||||
.name = "olpc-xo1-pm-acpi",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = xo1_pm_probe,
|
||||
.remove = xo1_pm_remove,
|
||||
|
||||
Reference in New Issue
Block a user