Commit dfd19866 authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Greg Kroah-Hartman

parport: Remove parport_driver.devmodel

'devmodel' hasn't actually been used since:
  'commit 3275158f ("parport: remove use of devmodel")'
and everyone now has it set to true and has been fixed up; remove
the flag.

(There are still comments all over about it)
Signed-off-by: default avatarDr. David Alan Gilbert <linux@treblig.org>
Acked-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20240502154823.67235-4-linux@treblig.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed06e054
...@@ -768,7 +768,6 @@ static struct parport_driver pata_parport_driver = { ...@@ -768,7 +768,6 @@ static struct parport_driver pata_parport_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.match_port = pata_parport_attach, .match_port = pata_parport_attach,
.detach = pata_parport_detach, .detach = pata_parport_detach,
.devmodel = true,
}; };
static __init int pata_parport_init(void) static __init int pata_parport_init(void)
......
...@@ -162,7 +162,6 @@ static struct parport_driver ks0108_parport_driver = { ...@@ -162,7 +162,6 @@ static struct parport_driver ks0108_parport_driver = {
.name = "ks0108", .name = "ks0108",
.match_port = ks0108_parport_attach, .match_port = ks0108_parport_attach,
.detach = ks0108_parport_detach, .detach = ks0108_parport_detach,
.devmodel = true,
}; };
module_parport_driver(ks0108_parport_driver); module_parport_driver(ks0108_parport_driver);
......
...@@ -1706,7 +1706,6 @@ static struct parport_driver panel_driver = { ...@@ -1706,7 +1706,6 @@ static struct parport_driver panel_driver = {
.name = "panel", .name = "panel",
.match_port = panel_attach, .match_port = panel_attach,
.detach = panel_detach, .detach = panel_detach,
.devmodel = true,
}; };
module_parport_driver(panel_driver); module_parport_driver(panel_driver);
......
...@@ -1016,7 +1016,6 @@ static struct parport_driver lp_driver = { ...@@ -1016,7 +1016,6 @@ static struct parport_driver lp_driver = {
.name = "lp", .name = "lp",
.match_port = lp_attach, .match_port = lp_attach,
.detach = lp_detach, .detach = lp_detach,
.devmodel = true,
}; };
static int __init lp_init(void) static int __init lp_init(void)
......
...@@ -839,7 +839,6 @@ static struct parport_driver pp_driver = { ...@@ -839,7 +839,6 @@ static struct parport_driver pp_driver = {
.probe = pp_probe, .probe = pp_probe,
.match_port = pp_attach, .match_port = pp_attach,
.detach = pp_detach, .detach = pp_detach,
.devmodel = true,
}; };
static int __init ppdev_init(void) static int __init ppdev_init(void)
......
...@@ -400,7 +400,6 @@ static struct parport_driver i2c_parport_driver = { ...@@ -400,7 +400,6 @@ static struct parport_driver i2c_parport_driver = {
.name = "i2c-parport", .name = "i2c-parport",
.match_port = i2c_parport_attach, .match_port = i2c_parport_attach,
.detach = i2c_parport_detach, .detach = i2c_parport_detach,
.devmodel = true,
}; };
module_parport_driver(i2c_parport_driver); module_parport_driver(i2c_parport_driver);
......
...@@ -673,7 +673,6 @@ static struct parport_driver db9_parport_driver = { ...@@ -673,7 +673,6 @@ static struct parport_driver db9_parport_driver = {
.name = "db9", .name = "db9",
.match_port = db9_attach, .match_port = db9_attach,
.detach = db9_detach, .detach = db9_detach,
.devmodel = true,
}; };
static int __init db9_init(void) static int __init db9_init(void)
......
...@@ -1016,7 +1016,6 @@ static struct parport_driver gc_parport_driver = { ...@@ -1016,7 +1016,6 @@ static struct parport_driver gc_parport_driver = {
.name = "gamecon", .name = "gamecon",
.match_port = gc_attach, .match_port = gc_attach,
.detach = gc_detach, .detach = gc_detach,
.devmodel = true,
}; };
static int __init gc_init(void) static int __init gc_init(void)
......
...@@ -274,7 +274,6 @@ static struct parport_driver tgfx_parport_driver = { ...@@ -274,7 +274,6 @@ static struct parport_driver tgfx_parport_driver = {
.name = "turbografx", .name = "turbografx",
.match_port = tgfx_attach, .match_port = tgfx_attach,
.detach = tgfx_detach, .detach = tgfx_detach,
.devmodel = true,
}; };
static int __init tgfx_init(void) static int __init tgfx_init(void)
......
...@@ -293,7 +293,6 @@ static struct parport_driver walkera0701_parport_driver = { ...@@ -293,7 +293,6 @@ static struct parport_driver walkera0701_parport_driver = {
.name = "walkera0701", .name = "walkera0701",
.match_port = walkera0701_attach, .match_port = walkera0701_attach,
.detach = walkera0701_detach, .detach = walkera0701_detach,
.devmodel = true,
}; };
module_parport_driver(walkera0701_parport_driver); module_parport_driver(walkera0701_parport_driver);
...@@ -218,6 +218,5 @@ static struct parport_driver parkbd_parport_driver = { ...@@ -218,6 +218,5 @@ static struct parport_driver parkbd_parport_driver = {
.name = "parkbd", .name = "parkbd",
.match_port = parkbd_attach, .match_port = parkbd_attach,
.detach = parkbd_detach, .detach = parkbd_detach,
.devmodel = true,
}; };
module_parport_driver(parkbd_parport_driver); module_parport_driver(parkbd_parport_driver);
...@@ -1193,7 +1193,6 @@ static int baycom_epp_par_probe(struct pardevice *par_dev) ...@@ -1193,7 +1193,6 @@ static int baycom_epp_par_probe(struct pardevice *par_dev)
static struct parport_driver baycom_epp_par_driver = { static struct parport_driver baycom_epp_par_driver = {
.name = "bce", .name = "bce",
.probe = baycom_epp_par_probe, .probe = baycom_epp_par_probe,
.devmodel = true,
}; };
static void __init baycom_epp_dev_setup(struct net_device *dev) static void __init baycom_epp_dev_setup(struct net_device *dev)
......
...@@ -503,7 +503,6 @@ static int baycom_par_probe(struct pardevice *par_dev) ...@@ -503,7 +503,6 @@ static int baycom_par_probe(struct pardevice *par_dev)
static struct parport_driver baycom_par_driver = { static struct parport_driver baycom_par_driver = {
.name = "bcp", .name = "bcp",
.probe = baycom_par_probe, .probe = baycom_par_probe,
.devmodel = true,
}; };
static int __init init_baycompar(void) static int __init init_baycompar(void)
......
...@@ -1358,7 +1358,6 @@ static struct parport_driver plip_driver = { ...@@ -1358,7 +1358,6 @@ static struct parport_driver plip_driver = {
.probe = plip_probe, .probe = plip_probe,
.match_port = plip_attach, .match_port = plip_attach,
.detach = plip_detach, .detach = plip_detach,
.devmodel = true,
}; };
static void __exit plip_cleanup_module (void) static void __exit plip_cleanup_module (void)
......
...@@ -97,7 +97,6 @@ static int daisy_drv_probe(struct pardevice *par_dev) ...@@ -97,7 +97,6 @@ static int daisy_drv_probe(struct pardevice *par_dev)
static struct parport_driver daisy_driver = { static struct parport_driver daisy_driver = {
.name = "daisy_drv", .name = "daisy_drv",
.probe = daisy_drv_probe, .probe = daisy_drv_probe,
.devmodel = true,
}; };
/* Discover the IEEE1284.3 topology on a port -- muxes and daisy chains. /* Discover the IEEE1284.3 topology on a port -- muxes and daisy chains.
......
...@@ -216,7 +216,6 @@ static struct parport_driver pps_parport_driver = { ...@@ -216,7 +216,6 @@ static struct parport_driver pps_parport_driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.match_port = parport_attach, .match_port = parport_attach,
.detach = parport_detach, .detach = parport_detach,
.devmodel = true,
}; };
module_parport_driver(pps_parport_driver); module_parport_driver(pps_parport_driver);
......
...@@ -232,7 +232,6 @@ static struct parport_driver pps_gen_parport_driver = { ...@@ -232,7 +232,6 @@ static struct parport_driver pps_gen_parport_driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.match_port = parport_attach, .match_port = parport_attach,
.detach = parport_detach, .detach = parport_detach,
.devmodel = true,
}; };
module_parport_driver(pps_gen_parport_driver); module_parport_driver(pps_gen_parport_driver);
......
...@@ -1275,7 +1275,6 @@ static struct parport_driver imm_driver = { ...@@ -1275,7 +1275,6 @@ static struct parport_driver imm_driver = {
.name = "imm", .name = "imm",
.match_port = imm_attach, .match_port = imm_attach,
.detach = imm_detach, .detach = imm_detach,
.devmodel = true,
}; };
module_parport_driver(imm_driver); module_parport_driver(imm_driver);
......
...@@ -1151,7 +1151,6 @@ static struct parport_driver ppa_driver = { ...@@ -1151,7 +1151,6 @@ static struct parport_driver ppa_driver = {
.name = "ppa", .name = "ppa",
.match_port = ppa_attach, .match_port = ppa_attach,
.detach = ppa_detach, .detach = ppa_detach,
.devmodel = true,
}; };
module_parport_driver(ppa_driver); module_parport_driver(ppa_driver);
......
...@@ -315,7 +315,6 @@ static struct parport_driver butterfly_driver = { ...@@ -315,7 +315,6 @@ static struct parport_driver butterfly_driver = {
.name = "spi_butterfly", .name = "spi_butterfly",
.match_port = butterfly_attach, .match_port = butterfly_attach,
.detach = butterfly_detach, .detach = butterfly_detach,
.devmodel = true,
}; };
module_parport_driver(butterfly_driver); module_parport_driver(butterfly_driver);
......
...@@ -318,7 +318,6 @@ static struct parport_driver spi_lm70llp_drv = { ...@@ -318,7 +318,6 @@ static struct parport_driver spi_lm70llp_drv = {
.name = DRVNAME, .name = DRVNAME,
.match_port = spi_lm70llp_attach, .match_port = spi_lm70llp_attach,
.detach = spi_lm70llp_detach, .detach = spi_lm70llp_detach,
.devmodel = true,
}; };
module_parport_driver(spi_lm70llp_drv); module_parport_driver(spi_lm70llp_drv);
......
...@@ -256,7 +256,6 @@ struct parport_driver { ...@@ -256,7 +256,6 @@ struct parport_driver {
void (*match_port)(struct parport *); void (*match_port)(struct parport *);
int (*probe)(struct pardevice *); int (*probe)(struct pardevice *);
struct device_driver driver; struct device_driver driver;
bool devmodel;
}; };
#define to_parport_driver(n) container_of(n, struct parport_driver, driver) #define to_parport_driver(n) container_of(n, struct parport_driver, driver)
...@@ -299,9 +298,6 @@ int __must_check __parport_register_driver(struct parport_driver *, ...@@ -299,9 +298,6 @@ int __must_check __parport_register_driver(struct parport_driver *,
* to receive notifications about ports being found in the * to receive notifications about ports being found in the
* system, as well as ports no longer available. * system, as well as ports no longer available.
* *
* If devmodel is true then the new device model is used
* for registration.
*
* The @driver structure is allocated by the caller and must not be * The @driver structure is allocated by the caller and must not be
* deallocated until after calling parport_unregister_driver(). * deallocated until after calling parport_unregister_driver().
* *
......
...@@ -882,7 +882,6 @@ static struct parport_driver mts64_parport_driver = { ...@@ -882,7 +882,6 @@ static struct parport_driver mts64_parport_driver = {
.probe = snd_mts64_dev_probe, .probe = snd_mts64_dev_probe,
.match_port = snd_mts64_attach, .match_port = snd_mts64_attach,
.detach = snd_mts64_detach, .detach = snd_mts64_detach,
.devmodel = true,
}; };
/********************************************************************* /*********************************************************************
......
...@@ -668,7 +668,6 @@ static struct parport_driver portman_parport_driver = { ...@@ -668,7 +668,6 @@ static struct parport_driver portman_parport_driver = {
.probe = snd_portman_dev_probe, .probe = snd_portman_dev_probe,
.match_port = snd_portman_attach, .match_port = snd_portman_attach,
.detach = snd_portman_detach, .detach = snd_portman_detach,
.devmodel = true,
}; };
/********************************************************************* /*********************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment