1. 08 Feb, 2013 4 commits
    • Ian Abbott's avatar
      staging: comedi: correct error message in comedi_alloc_subdevice_minor() · b12da2e4
      Ian Abbott authored
      `comedi_alloc_subdevice_minors()` currently prints a message about
      running out of minor numbers board device files if it runs out of minor
      device numbers.  Change it to complain about running out of minor device
      numbers for subdevice files as these are in a different range, not
      shared with those for board device files.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b12da2e4
    • Ian Abbott's avatar
      staging: comedi: don't return minor from comedi_alloc_subdevice_minor() · da718546
      Ian Abbott authored
      `comedi_alloc_subdevice_minor()` currently returns the allocated minor
      device number on success.  This is not really of any interest to the
      caller (in fact the return value is not even checked), so just return 0
      on success.  If the caller really needs to know the allocated minor
      device number it can look in `s->minor`.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      da718546
    • Peter Huewe's avatar
      staging/goldfish: Add MTD dependency to KCONFIG · f6fcf7f7
      Peter Huewe authored
      If CONFIG_MTD is not set goldfish_nand fails to compile with the
      following linker warnings:
      
      drivers/built-in.o: In function `goldfish_nand_remove':
      goldfish_nand.c:(.text+0x6e7d0e): undefined reference to
      `mtd_device_unregister'
      drivers/built-in.o: In function `goldfish_nand_erase':
      goldfish_nand.c:(.text+0x6e8ba2): undefined reference to
      `mtd_erase_callback'
      drivers/built-in.o: In function `goldfish_nand_init_device':
      goldfish_nand.c:(.text+0x6e8eba): undefined reference to
      `mtd_device_parse_register'
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f6fcf7f7
    • Peter Huewe's avatar
      staging/goldfish: Use %zx for printing size_t variables · b4fcf48a
      Peter Huewe authored
      When building the driver, gcc emits the following warnings:
      .../drivers/staging/goldfish/goldfish_nand.c:
      In function 'goldfish_nand_read_oob':
      goldfish_nand.c:159:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      goldfish_nand.c:159:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 4 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_write_oob':
      goldfish_nand.c:191:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      goldfish_nand.c:191:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 4 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_read':
      goldfish_nand.c:215:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_write':
      goldfish_nand.c:239:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      
      -> As defined in the printk-formats use %zx for size_t variables
      Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b4fcf48a
  2. 07 Feb, 2013 2 commits
  3. 06 Feb, 2013 34 commits