Skip to content
  1. Nov 08, 2012
    • Ian Coolidge's avatar
      usb: gadget: g_ether: fix frame size check for 802.1Q · 4fe5f079
      Ian Coolidge authored
      
      
      Checking skb->len against ETH_FRAME_LEN assumes a 1514
      ethernet frame size. With an 802.1Q VLAN header, ethernet
      frame length can now be 1518. Validate frame length against that.
      
      Signed-off-by: default avatarIan Coolidge <iancoolidge@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4fe5f079
    • Vipul Pandya's avatar
      cxgb4: Fix initialization of SGE_CONTROL register · 0dad9e94
      Vipul Pandya authored
      
      
      INGPADBOUNDARY_MASK is already shifted. No need to shift it again. On reloading
      a driver it was resulting in a bad SGE FL MTU sizes [1536, 9088] error. This
      only causes an issue on systems that have L1 cache size of 32B, 128B, 512B,
      2048B or 4096B.
      
      Signed-off-by: default avatarJay Hernandez <jay@chelsio.com>
      Signed-off-by: default avatarVipul Pandya <vipul@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0dad9e94
    • Lee Jones's avatar
      isdn: Make CONFIG_ISDN depend on CONFIG_NETDEVICES · 7fd78edc
      Lee Jones authored
      
      
      It doesn't make much sense to enable ISDN services if you don't
      intend to connect to a network. Therefore insisting that ISDN
      depends on NETDEVICES seems logical. We can then remove any
      guards mentioning NETDEVICES inside all subordinate drivers.
      
      This also has the nice side-effect of fixing the warning below
      when ISDN_I4L && !CONFIG_NETDEVICES at compile time.
      
      This patch fixes:
      drivers/isdn/i4l/isdn_common.c: In function ‘isdn_ioctl’:
      drivers/isdn/i4l/isdn_common.c:1278:8: warning: unused variable ‘s’ [-Wunused-variable]
      
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7fd78edc
    • Vipul Pandya's avatar
      cxgb4: Initialize data structures before using. · 0062b15c
      Vipul Pandya authored
      
      
      We should not assume reserve fields to be don't cares as fields may change.
      Clearing data structures before using.
      
      Signed-off-by: default avatarJay Hernandez <jay@chelsio.com>
      Signed-off-by: default avatarVipul Pandya <vipul@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0062b15c
    • Eric Leblond's avatar
      af-packet: fix oops when socket is not present · a3d744e9
      Eric Leblond authored
      Due to a NULL dereference, the following patch is causing oops
      in normal trafic condition:
      
      commit c0de08d0
      
      
      Author: Eric Leblond <eric@regit.org>
      Date:   Thu Aug 16 22:02:58 2012 +0000
      
          af_packet: don't emit packet on orig fanout group
      
      This buggy patch was a feature fix and has reached most stable
      branches.
      
      When skb->sk is NULL and when packet fanout is used, there is a
      crash in match_fanout_group where skb->sk is accessed.
      This patch fixes the issue by returning false as soon as the
      socket is NULL: this correspond to the wanted behavior because
      the kernel as to resend the skb to all the listening socket in
      this case.
      
      Signed-off-by: default avatarEric Leblond <eric@regit.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a3d744e9
    • Paolo Valente's avatar
      pkt_sched: enable QFQ to support TSO/GSO · 3015f3d2
      Paolo Valente authored
      
      
      If the max packet size for some class (configured through tc) is
      violated by the actual size of the packets of that class, then QFQ
      would not schedule classes correctly, and the data structures
      implementing the bucket lists may get corrupted. This problem occurs
      with TSO/GSO even if the max packet size is set to the MTU, and is,
      e.g., the cause of the failure reported in [1]. Two patches have been
      proposed to solve this problem in [2], one of them is a preliminary
      version of this patch.
      
      This patch addresses the above issues by: 1) setting QFQ parameters to
      proper values for supporting TSO/GSO (in particular, setting the
      maximum possible packet size to 64KB), 2) automatically increasing the
      max packet size for a class, lmax, when a packet with a larger size
      than the current value of lmax arrives.
      
      The drawback of the first point is that the maximum weight for a class
      is now limited to 4096, which is equal to 1/16 of the maximum weight
      sum.
      
      Finally, this patch also forcibly caps the timestamps of a class if
      they are too high to be stored in the bucket list. This capping, taken
      from QFQ+ [3], handles the unfrequent case described in the comment to
      the function slot_insert.
      
      [1] http://marc.info/?l=linux-netdev&m=134968777902077&w=2
      [2] http://marc.info/?l=linux-netdev&m=135096573507936&w=2
      [3] http://marc.info/?l=linux-netdev&m=134902691421670&w=2
      
      Signed-off-by: default avatarPaolo Valente <paolo.valente@unimore.it>
      Tested-by: default avatarCong Wang <amwang@redhat.com>
      Acked-by: default avatarStephen Hemminger <shemminger@vyatta.com>
      Acked-by: default avatarStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3015f3d2
  2. Nov 04, 2012
  3. Nov 03, 2012
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 0f89a573
      Linus Torvalds authored
      Pull networking fixes from David Miller:
       "First post-Sandy pull request"
      
       1) Fix antenna gain handling and initialization of chan->max_reg_power
          in wireless, from Felix Fietkau.
      
       2) Fix nexthop handling in H.232 conntrack helper, from Julian
          Anastasov.
      
       3) Only process 80211 mesh config header in certain kinds of frames,
          from Javier Cardona.
      
       4) 80211 management frame header length needs to be validated, from
          Johannes Berg.
      
       5) Don't access free'd SKBs in ath9k driver, from Felix Fietkay.
      
       6) Test for permanent state correctly in VXLAN driver, from Stephen
          Hemminger.
      
       7) BNX2X bug fixes from Yaniv Rosner and Dmitry Kravkov.
      
       8) Fix off by one errors in bonding, from Nikolay ALeksandrov.
      
       9) Fix divide by zero in TCP-Illinois congestion control.  From Jesper
          Dangaard Brouer.
      
      10) TCP metrics code says "Yo dawg, I heard you like sizeof, so I did a
          sizeof of a sizeof, so you can size your size" Fix from Julian
          Anastasov.
      
      11) Several drivers do mdiobus_free without first doing an
          mdiobus_unregister leading to stray pointer references.  Fix from
          Peter Senna Tschudin.
      
      12) Fix OOPS in l2tp_eth_create() error path, it's another danling
          pointer kinda situation.  Fix from Tom Parkin.
      
      13) Hardware driven by the vmxnet driver can't handle larger than 16K
          fragments, so split them up when necessary.  From Eric Dumazet.
      
      14) Handle zero length data length in tcp_send_rcvq() properly.  Fix
          from Pavel Emelyanov.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (38 commits)
        tcp-repair: Handle zero-length data put in rcv queue
        vmxnet3: must split too big fragments
        l2tp: fix oops in l2tp_eth_create() error path
        cxgb4: Fix unable to get UP event from the LLD
        drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free
        drivers/net/ethernet/nxp/lpc_eth.c: Call mdiobus_unregister before mdiobus_free
        bnx2x: fix HW initialization using fw 7.8.x
        tcp: Fix double sizeof in new tcp_metrics code
        net: fix divide by zero in tcp algorithm illinois
        net: sctp: Fix typo in net/sctp
        bonding: fix second off-by-one error
        bonding: fix off-by-one error
        bnx2x: Disable FCoE for 57840 since not yet supported by FW
        bnx2x: Fix no link on 577xx 10G-baseT
        bnx2x: Fix unrecognized SFP+ module after driver is loaded
        bnx2x: Fix potential incorrect link speed provision
        bnx2x: Restore global registers back to default.
        bnx2x: Fix link down in 57712 following LFA
        bnx2x: Fix 57810 1G-KR link against certain switches.
        ixgbe: PTP get_ts_info missing software support
        ...
      0f89a573
    • Pavel Emelyanov's avatar
      tcp-repair: Handle zero-length data put in rcv queue · c454e611
      Pavel Emelyanov authored
      
      
      When sending data into a tcp socket in repair state we should check
      for the amount of data being 0 explicitly. Otherwise we'll have an skb
      with seq == end_seq in rcv queue, but tcp doesn't expect this to happen
      (in particular a warn_on in tcp_recvmsg shoots).
      
      Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
      Reported-by: default avatarGiorgos Mavrikas <gmavrikas@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c454e611
    • Eric Dumazet's avatar
      vmxnet3: must split too big fragments · a4d7e485
      Eric Dumazet authored
      
      
      vmxnet3 has a 16Kbytes limit per tx descriptor, that happened to work
      as long as we provided PAGE_SIZE fragments.
      
      Our stack can now build larger fragments, so we need to split them to
      the 16kbytes boundary.
      
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reported-by: default avatarjongman heo <jongman.heo@samsung.com>
      Tested-by: default avatarjongman heo <jongman.heo@samsung.com>
      Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
      Reviewed-by: default avatarBhavesh Davda <bhavesh@vmware.com>
      Signed-off-by: default avatarShreyas Bhatewara <sbhatewara@vmware.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a4d7e485
    • Tom Parkin's avatar
      l2tp: fix oops in l2tp_eth_create() error path · 78933636
      Tom Parkin authored
      
      
      When creating an L2TPv3 Ethernet session, if register_netdev() should fail for
      any reason (for example, automatic naming for "l2tpeth%d" interfaces hits the
      32k-interface limit), the netdev is freed in the error path.  However, the
      l2tp_eth_sess structure's dev pointer is left uncleared, and this results in
      l2tp_eth_delete() then attempting to unregister the same netdev later in the
      session teardown.  This results in an oops.
      
      To avoid this, clear the session dev pointer in the error path.
      
      Signed-off-by: default avatarTom Parkin <tparkin@katalix.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      78933636
    • Vipul Pandya's avatar
      cxgb4: Fix unable to get UP event from the LLD · e3c98512
      Vipul Pandya authored
      
      
      If T4 configuration file gets loaded from the /lib/firmware/cxgb4/ directory
      then offload capabilities of the cards were getting disabled during
      initialization. Hence ULDs do not get an UP event from the LLD.
      
      Signed-off-by: default avatarJay Hernandez <jay@chelsio.com>
      Signed-off-by: default avatarVipul Pandya <vipul@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e3c98512
    • Peter Senna Tschudin's avatar
      drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free · aa731872
      Peter Senna Tschudin authored
      Based on commit b27393ae
      
      
      
      Calling mdiobus_free without calling mdiobus_unregister causes
      BUG_ON(). This patch fixes the issue.
      
      The semantic patch that found this issue(http://coccinelle.lip6.fr/):
      // <smpl>
      @@
      expression E;
      @@
        ... when != mdiobus_unregister(E);
      
      + mdiobus_unregister(E);
        mdiobus_free(E);
      // </smpl>
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aa731872
    • Peter Senna Tschudin's avatar
      drivers/net/ethernet/nxp/lpc_eth.c: Call mdiobus_unregister before mdiobus_free · 57c10b61
      Peter Senna Tschudin authored
      Based on commit b27393ae
      
      
      
      Calling mdiobus_free without calling mdiobus_unregister causes
      BUG_ON(). This patch fixes the issue.
      
      The semantic patch that found this issue(http://coccinelle.lip6.fr/):
      // <smpl>
      @@
      expression E;
      @@
        ... when != mdiobus_unregister(E);
      
      + mdiobus_unregister(E);
        mdiobus_free(E);
      // </smpl>
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
      Tested-by: default avatarRoland Stigge <stigge@antcom.de>
      Tested-by: default avatarAlexandre Pereira da Silva <aletes.xgr@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      57c10b61
    • Dmitry Kravkov's avatar
      bnx2x: fix HW initialization using fw 7.8.x · 2b674047
      Dmitry Kravkov authored
      Since commit 96bed4b9
      
       (use FW 7.8.2) BRB HW block needs to be
      initialized using fw values for all devices.
      Otherwise ETS on 57712/578xx will not work.
      
      Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
      Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2b674047
    • Linus Torvalds's avatar
      Merge tag 'pm-for-3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · a315b5a6
      Linus Torvalds authored
      Pull power management update from Rafael J. Wysocki:
       "Change the email address of the powernow-k8 maintainer."
      
      * tag 'pm-for-3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq / powernow-k8: Change maintainer's email address
      a315b5a6
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 74fb838c
      Linus Torvalds authored
      Pull input subsystem fixes from Dmitry Torokhov:
       "Just a few driver fixes."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: tsc40 - remove wrong announcement of pressure support
        Input: lpc32xx-keys - select INPUT_MATRIXKMAP
        Input: pxa27x_keypad - clear pending interrupts on keypad config
        Input: wacom - correct bad Cintiq 24HD check
        Input: wacom - add INPUT_PROP_DIRECT flag to Cintiq 24HD
        Input: egalax_ts - get gpio from devicetree
      74fb838c
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 23e44302
      Linus Torvalds authored
      Pull more scsi target fixes from Nicholas Bellinger:
       "This series is a second round of target fixes for v3.7-rc4 that have
        come into target-devel over the last days, and are important enough to
        be applied ASAP.
      
        All are being CC'ed to stable.  The most important two are:
      
         - target: Re-add explict zeroing of INQUIRY bounce buffer memory to
           fix a regression for handling zero-length payloads, a bug that went
           during v3.7-rc1, and hit >= v3.6.3 stable.  (nab + paolo)
      
         - iscsi-target: Fix a long-standing missed R2T wakeup race in TX
           thread processing when using a single queue slot.  (Roland)
      
        Thanks to Roland & PureStorage team for helping to track down this
        long standing race with iscsi-target single queue slot operation.
      
        Also, the tcm_fc(FCoE) regression bug that was observed recently with
        -rc2 code has also been resolved with the cancel_delayed_work() return
        bugfix (commit c0158ca6: "workqueue: cancel_delayed_work() should
        return %false if work item is idle") now in -rc3.  Thanks again to Yi
        Zou, MDR, Robert Love @ Intel for helping to track this down."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        target: Fix incorrect usage of nested IRQ spinlocks in ABORT_TASK path
        iscsi-target: Fix missed wakeup race in TX thread
        target: Avoid integer overflow in se_dev_align_max_sectors()
        target: Don't return success from module_init() if setup fails
        target: Re-add explict zeroing of INQUIRY bounce buffer memory
      23e44302
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging · ae41fce3
      Linus Torvalds authored
      Pull hwmon fixes from Guenter Roeck:
       "An e-mail address update, and fix a compile error on SPARC"
      
      * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: Only include of_match_table with CONFIG_OF_GPIO
        hwmon, fam15h_power: Change email address, MAINTAINERS entry
      ae41fce3
    • Linus Torvalds's avatar
      Merge tag 'frv-fixes-20121102' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-frv · b987a834
      Linus Torvalds authored
      Pull FRV fixes from David Howells:
       "A collection of small fixes for the FRV architecture."
      
      * tag 'frv-fixes-20121102' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-frv:
        frv: fix the broken preempt
        frv: switch to saner kernel_execve() semantics
        FRV: Fix the new-style kernel_thread() stuff
        FRV: Fix the preemption handling
        FRV: gcc-4.1.2 also inlines weak functions
        FRV: Don't objcopy the GNU build_id note
        FRV: Add missing linux/export.h #inclusions
      b987a834
    • Linus Torvalds's avatar
      Merge tag 'stable/for-linus-3.7-rc4-tag' of... · 66b6a0c9
      Linus Torvalds authored
      Merge tag 'stable/for-linus-3.7-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
      
      Pull Xen bugfixes from Konrad Rzeszutek Wilk:
       - Use appropriate macros instead of hand-rolling our own (ARM).
       - Fixes if FB/KBD closed unexpectedly.
       - Fix memory leak in /dev/gntdev ioctl calls.
       - Fix overflow check in xenbus_file_write.
       - Document cleanup.
       - Performance optimization when migrating guests.
      
      * tag 'stable/for-linus-3.7-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
        xen/mmu: Use Xen specific TLB flush instead of the generic one.
        xen/arm: use the __HVC macro
        xen/xenbus: fix overflow check in xenbus_file_write()
        xen-kbdfront: handle backend CLOSED without CLOSING
        xen-fbfront: handle backend CLOSED without CLOSING
        xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF
        x86: remove obsolete comment from asm/xen/hypervisor.h
      66b6a0c9
    • Sasha Levin's avatar
      hashtable: introduce a small and naive hashtable · d9b482c8
      Sasha Levin authored
      
      
      This hashtable implementation is using hlist buckets to provide a simple
      hashtable to prevent it from getting reimplemented all over the kernel.
      
      Signed-off-by: default avatarSasha Levin <levinsasha928@gmail.com>
      [ Merging this now, so that subsystems can start applying Sasha's
        patches that use this   - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d9b482c8
    • Al Viro's avatar
      frv: fix the broken preempt · 1d72d9f8
      Al Viro authored
      
      
      Just get %icc2 into the state we would have after local_irq_disable()
      and physical IRQ having happened since then.  Then we can simply
      use preempt_schedule_irq() and be done with the whole mess.
      
      Acked-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      1d72d9f8
    • Al Viro's avatar
      frv: switch to saner kernel_execve() semantics · 7b7ade11
      Al Viro authored
      
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      7b7ade11
  4. Nov 02, 2012
    • David Howells's avatar
      FRV: Fix the new-style kernel_thread() stuff · e7aa51b2
      David Howells authored
      The kernel_thread() changes for FRV don't work, and FRV fails to boot,
      starting with:
      
      	commit 02ce496f
      
      
      	Author: Al Viro <viro@zeniv.linux.org.uk>
      	Date:   Tue Sep 18 22:18:51 2012 -0400
      	Subject: frv: split ret_from_fork, simplify kernel_thread() a lot
      
      The problem is that the userspace registers are completely cleared when a
      kernel thread is created and all subsequent user threads are then copied from
      that.  Unfortunately, however, the TBR and PSR registers are restored from the
      pt_regs and the values they should be set to are clobbered by the memset.
      
      Instead, copy across the old user registers as normal, and then merely alter
      GR8 and GR9 in it if we're going to execute a kernel thread.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      e7aa51b2
    • David Howells's avatar
      FRV: Fix the preemption handling · 1ee6f566
      David Howells authored
      
      
      Fix the preemption handling in FRV code where the PREEMPT_ACTIVE value is
      incorrectly loaded into the threadinfo flags rather than the threadinfo
      preemption count.
      
      Unfortunately, the code cannot be simply converted to use
      preempt_schedule_irq() as is because FRV uses virtual interrupt disablement to
      cut down on the cost of actually disabling interrupts and thus
      local_irq_enable() doesn't actually enable interrupts.
      
      Reported-by: default avatarAl Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      cc: Al Viro <viro@ZenIV.linux.org.uk>
      1ee6f566
    • David Howells's avatar
      FRV: gcc-4.1.2 also inlines weak functions · eded09cc
      David Howells authored
      
      
      gcc-4.1.2 inlines weak functions, which causes FRV to fail when the dummy
      thread_info_cache_init() gets inlined into start_kernel().
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      eded09cc
    • David Howells's avatar
      FRV: Don't objcopy the GNU build_id note · 5f0231d9
      David Howells authored
      
      
      Don't let objcopy transfer the GNU build_id note into the loadable image as it
      is located at address 0 and the image ends up >3G in size.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      5f0231d9
    • David Howells's avatar
      FRV: Add missing linux/export.h #inclusions · a5788caa
      David Howells authored
      
      
      Add missing linux/export.h #inclusions to the FRV arch.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      a5788caa
    • Linus Torvalds's avatar
      Merge tag 'xtensa-next-20121101' of git://github.com/czankel/xtensa-linux · c660b8f9
      Linus Torvalds authored
      Pull Xtensa fixes from Chris Zankel:
       "Some important bug fixes.
      
        With the change to uapi, there was a bug introduced that results in an
        empty syscall table (mult-inclusion bug).  Switching to the generic
        thread/execve allowed us to fix a bug we had in vfork()."
      
      * tag 'xtensa-next-20121101' of git://github.com/czankel/xtensa-linux:
        xtensa: switch to generic sys_execve()
        xtensa: switch to generic kernel_execve()
        xtensa: switch to generic kernel_thread()
        xtensa: reset windowbase/windowstart when cloning the VM
        xtensa: use physical addresses for bus addresses
        xtensa: allow multi-inclusion for uapi/unistd.h
      c660b8f9
    • Jamie Lentin's avatar
      hwmon: Only include of_match_table with CONFIG_OF_GPIO · eaa7cc60
      Jamie Lentin authored
      
      
      The following fixes build errors on sparc. Without any DT support,
      of_match_ptr is NULL and the below is a no-op. However, if just
      CONFIG_OF is defined then so is of_match_ptr.
      
      All useful parts of the gpio-fan DT support rely on CONFIG_OF_GPIO
      anyway, so of_match_table should too.
      
      Signed-off-by: default avatarJamie Lentin <jm@lentin.co.uk>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      eaa7cc60
  5. Nov 01, 2012