trafgen-libs = $(shell pkg-config --libs libnl-3.0) \
$(shell pkg-config --libs libnl-genl-3.0) \
-lm
trafgen-objs = xmalloc.o \
ioops.o \
privs.o \
proc.o \
dev.o \
irq.o \
link.o \
str.o \
sig.o \
sock.o \
mac80211.o \
ring_tx.o \
ring.o \
timer.o \
trafgen_lexer.yy.o \
trafgen_parser.tab.o \
trafgen.o
trafgen-lex = trafgen_lexer.yy.o
trafgen-yaac = trafgen_parser.tab.o
trafgen-eflags = $(shell pkg-config --cflags libnl-3.0) \
$(shell pkg-config --cflags libnl-genl-3.0) \
-DHAVE_DISSECTOR_PROTOS -I..
='net-next.git Git repository'/>
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we
have to nullify pointer on that case, to do not break further call
to clk_get_rate().
Reported-by: Felix Fietkau <nbd@nbd.name>
Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>