Skip to content
  1. Aug 04, 2021
  2. Aug 03, 2021
    • David S. Miller's avatar
      Merge branch 'Space-cleanup' · c8f6c77d
      David S. Miller authored
      
      
      Arnd Bergmann says:
      
      ====================
      drivers/net/Space.c cleanup
      
      I discovered that there are still a couple of drivers that rely on
      beiong statically initialized from drivers/net/Space.c the way
      we did in the last century. As it turns out, there are a couple
      of simplifications that can be made here, as well as some minor
      bugfixes.
      
      There are four classes of drivers that use this:
      
      - most 10mbit ISA bus ethernet drivers (and one 100mbit one)
      - both ISA localtalk drivers
      - several m68k ethernet drivers
      - one obsolete WAN driver
      
      I found that the drivers using in arch/m68k/ don't actually benefit
      from being probed this way as they do not rely on the netdev= command
      line arguments, they have simply never been changed to work like a
      modern driver.
      
      I had previously sent a patch to remove the sbni/granch driver, and
      there were no objections to this patch but forgot to resend it after
      some discussion about another patch in the same series.
      
      For the ISA drivers, there is usually no way to probe multiple devices
      at boot time other than the netdev= arguments, so all that logic is left
      in place for the moment, but centralized in a single file that only gets
      included in the kernel build if one or more of the drivers are built-in.
      
      I'm also changing the old-style init_module() functions in these drivers
      to static functions with a module_init() annotation, to more closely
      resemble modern drivers. These are the last drivers in the kernel to
      still use init_module/cleanup_module, removing those may enable future
      cleanups to the module loading process.
      
             Arnd
      
      Changes in v2:
      
      - replace xsurf100 change with Michael's version
      - make it PATCH instead of RFC
      - rebase to net-next as of August 3
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c8f6c77d
    • Arnd Bergmann's avatar
      ethernet: isa: convert to module_init/module_exit · a07d8ecf
      Arnd Bergmann authored
      
      
      There are a couple of ISA ethernet drivers that use the old
      init_module/cleanup_module function names for the main entry
      points, nothing else uses those any more.
      
      Change them to the documented method with module_init()
      and module_exit() markers next to static functions.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a07d8ecf
    • Arnd Bergmann's avatar
      wan: hostess_sv11: use module_init/module_exit helpers · d52c1069
      Arnd Bergmann authored
      
      
      This is one of very few drivers using the old init_module/cleanup_module
      function names. Change it over to the modern method.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d52c1069
    • Arnd Bergmann's avatar
      wan: remove sbni/granch driver · 72bcad53
      Arnd Bergmann authored
      The driver was merged in 1999 and has only ever seen treewide cleanups
      since then, with no indication whatsoever that anyone has actually
      had access to hardware for testing the patches.
      
      >From the information in the link below, it appears that the hardware
      is for some leased line system in Russia that has since been
      discontinued, and useless without any remote end to connect to.
      
      As the driver still feels like a Linux-2.2 era artifact today, it
      appears that the best way forward is to just delete it.
      
      Link: https://www.tms.ru/%D0%90%D0%B4%D0%B0%D0%BF%D1%82%D0%B5%D1%80_%D0%B4%D0%BB%D1%8F_%D0%B2%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D1%85_%D0%BB%D0%B8%D0%BD%D0%B8%D0%B9_Granch_SBNI12-10
      
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      72bcad53
    • Arnd Bergmann's avatar
      wan: remove stale Kconfig entries · db3db1f4
      Arnd Bergmann authored
      
      
      The dscc4 driver was removed in 2019 but these Kconfig entries remain,
      so remove them as well.
      
      Fixes: 28c9eb90 ("net/wan: dscc4: remove broken dscc4 driver")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      db3db1f4